aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authordglFromAtt <dgl@research.att.com>2019-03-16 05:33:06 -0400
committerdglFromAtt <dgl@research.att.com>2019-03-16 05:33:12 -0400
commita6edde8c4b3255b79d498f34ec295ef2060d7ea9 (patch)
tree2014b2ece6f571371cf8e468684b98464c7507fb /src/test
parent672890f7bcb936426ee5b1c577350496b3c9313d (diff)
Tidy up one test
Change-Id: I9056d0b05373e25d990051e742a59cb43ec86c67 Signed-off-by: dglFromAtt <dgl@research.att.com> Issue-ID: DMAAP-1095
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 ) {
}