Skip to content

Commit

Permalink
Added test case
Browse files Browse the repository at this point in the history
  • Loading branch information
pawankashyapollion committed Jan 10, 2025
1 parent 91ad909 commit a6b8cab
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.google.cloud.teleport.v2.templates.dbutils.connection.JdbcConnectionHelper;
import com.google.cloud.teleport.v2.templates.dbutils.dao.source.CassandraDao;
import com.google.cloud.teleport.v2.templates.dbutils.dao.source.JdbcDao;
import com.google.cloud.teleport.v2.templates.dbutils.dml.CassandraDMLGenerator;
import com.google.cloud.teleport.v2.templates.dbutils.dml.MySQLDMLGenerator;
import com.google.cloud.teleport.v2.templates.exceptions.UnsupportedSourceException;
import java.util.Arrays;
Expand Down Expand Up @@ -104,8 +105,8 @@ public void testCreateSourceProcessor_cassandra_validSource() throws Exception {
Constants.SOURCE_CASSANDRA, shards, maxConnections);

Assert.assertNotNull(processor);
// ToDo this Particular line will get enable in DML PR
// Assert.assertTrue(processor.getDmlGenerator() instanceof CassandraDMLGenerator);

Assert.assertTrue(processor.getDmlGenerator() instanceof CassandraDMLGenerator);
Assert.assertEquals(1, processor.getSourceDaoMap().size());
Assert.assertTrue(processor.getSourceDaoMap().get("shard1") instanceof CassandraDao);
}
Expand Down

0 comments on commit a6b8cab

Please sign in to comment.