Adds a test to OPAL plug-in for overridng its default topic.
@@ -47,6 +47,13 @@ public class OPALPluginTest {
assertEquals("maven.packages", opalPlugin.consumerTopics().get(0));
}
+ @Test
+ public void testSetTopic() {
+ String topicName = "fasten.mvn.pkg";
+ opalPlugin.setTopic(topicName);
+ assertEquals(topicName, opalPlugin.consumerTopics().get(0));
+ }
+
@Test
public void testConsume() throws JSONException, FileNotFoundException {
