summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorvarun gudisena <varuneshwar.gudisena@att.com>2019-03-21 21:13:38 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-21 21:13:38 +0000
commitea6cd99e12da523069055015970d26260d138649 (patch)
tree803762c221e36947c95f3b0d2e286354eb511290 /src/test
parentcee37b37655ed5a52078e37c7da51c887e2d73e5 (diff)
parenta6edde8c4b3255b79d498f34ec295ef2060d7ea9 (diff)
Merge "Tidy up one test"
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/onap/dmaap/dbcapi/database/TableHandlerTest.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/java/org/onap/dmaap/dbcapi/database/TableHandlerTest.java b/src/test/java/org/onap/dmaap/dbcapi/database/TableHandlerTest.java
index dc2bb2f..af44db0 100644
--- a/src/test/java/org/onap/dmaap/dbcapi/database/TableHandlerTest.java
+++ b/src/test/java/org/onap/dmaap/dbcapi/database/TableHandlerTest.java
@@ -71,7 +71,7 @@ public class TableHandlerTest {
public void test1() {
- //rh.reflect( "org.onap.dmaap.dbcapi.aaf.client.MrTopicConnection", "get", "idNotSet@namespaceNotSet:pwdNotSet" );
+ rh.reflect( "org.onap.dmaap.dbcapi.aaf.client.MrTopicConnection", "get", "idNotSet@namespaceNotSet:pwdNotSet" );
}
@@ -84,17 +84,21 @@ public class TableHandlerTest {
@Test
public void test3() {
- TableHandler.setSpecialCase("topic", "replication_case", new TopicReplicationTypeHandler());
+ DBFieldHandler.SqlOp trth = new TopicReplicationTypeHandler();
+ TableHandler.setSpecialCase("topic", "replication_case", trth);
try {
ConnectionFactory cf = new ConnectionFactory();
TableHandler th = new TableHandler( cf, TopicReplicationTypeHandler.class, "foo", "bar" );
+ DBFieldHandler.SqlOp t = th.getSpecialCase( "foo", "bar" );
+ assert( trth == t );
} catch (Exception e ) {
}
try {
- ConnectionFactory cf = new ConnectionFactory();
+
TableHandler th = new TableHandler( TopicReplicationTypeHandler.class, "foo", "bar" );
- th.getSpecialCase( "foo", "bar" );
+ DBFieldHandler.SqlOp t = th.getSpecialCase( "foo", "bar" );
+ assert( trth == t );
} catch (Exception e ) {
}