diff options
author | Jim Hahn <jrh3@att.com> | 2019-11-11 20:03:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-11 20:03:18 +0000 |
commit | 6149ece02f525206242e0489ff1dcda8d9577484 (patch) | |
tree | b348535c02d6cb565a4051830f18805fa59f4e69 /feature-mdc-filters | |
parent | a45c098afaf3b847fad14d8b42789999d73e0816 (diff) | |
parent | f38687b040bec7b8556fb4bde229343831fa43fd (diff) |
Merge "Miscellaneous code clean up"
Diffstat (limited to 'feature-mdc-filters')
-rwxr-xr-x | feature-mdc-filters/src/test/java/org/onap/policy/drools/mdc/filters/MdcFilterFeatureTest.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/feature-mdc-filters/src/test/java/org/onap/policy/drools/mdc/filters/MdcFilterFeatureTest.java b/feature-mdc-filters/src/test/java/org/onap/policy/drools/mdc/filters/MdcFilterFeatureTest.java index 51ff3e92..a8e0cf16 100755 --- a/feature-mdc-filters/src/test/java/org/onap/policy/drools/mdc/filters/MdcFilterFeatureTest.java +++ b/feature-mdc-filters/src/test/java/org/onap/policy/drools/mdc/filters/MdcFilterFeatureTest.java @@ -57,11 +57,6 @@ public class MdcFilterFeatureTest { private static final String TEST_TOPIC_B = "org.onap.policy.test-topic-b"; /** - * The mock PolicyController to be used for the junits. - */ - private PolicyController controller; - - /** * The mock properties to be used for the junits. */ private Properties props; @@ -85,12 +80,14 @@ public class MdcFilterFeatureTest { message = new String(Files.readAllBytes(Paths.get("src/test/resources/onset.json"))); props = mockFeatureProperties(); - controller = mock(PolicyController.class); props.setProperty("dmaap.source.topics", TEST_TOPIC_A); props.setProperty("dmaap.source.topics." + TEST_TOPIC_A + ".servers", "http://testing123.com/"); props.setProperty("noop.sink.topics", TEST_TOPIC_B); + // The mock PolicyController to be used for the junits. + PolicyController controller = mock(PolicyController.class); + List<TopicSource> topicSources = TopicEndpointManager.getManager().addTopicSources(props); doReturn(topicSources).when(controller).getTopicSources(); |