diff options
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/onap/aai/AAISetup.java | 3 | ||||
-rw-r--r-- | src/test/java/org/onap/aai/util/SendMigrationNotificationsTest.java | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/test/java/org/onap/aai/AAISetup.java b/src/test/java/org/onap/aai/AAISetup.java index 49cc6c4..f0b78f2 100644 --- a/src/test/java/org/onap/aai/AAISetup.java +++ b/src/test/java/org/onap/aai/AAISetup.java @@ -64,7 +64,8 @@ import java.util.Map; XmlFormatTransformerConfiguration.class, RestBeanConfig.class, LoaderFactory.class, - NotificationService.class + NotificationService.class, + KafkaConfig.class }) @TestPropertySource(properties = { "schema.uri.base.path = /aai", diff --git a/src/test/java/org/onap/aai/util/SendMigrationNotificationsTest.java b/src/test/java/org/onap/aai/util/SendMigrationNotificationsTest.java index 2f6a4e0..eb2e2a3 100644 --- a/src/test/java/org/onap/aai/util/SendMigrationNotificationsTest.java +++ b/src/test/java/org/onap/aai/util/SendMigrationNotificationsTest.java @@ -138,7 +138,7 @@ public class SendMigrationNotificationsTest extends AAISetup { @Test public void processEverything() throws Exception { SendMigrationNotifications s = spy(new SendMigrationNotifications( - loaderFactory, schemaVersions, REALTIME_CONFIG, FILE, Collections.EMPTY_SET, 0, 0, "test", EventAction.UPDATE, "DMAAP-LOAD")); + loaderFactory, schemaVersions, REALTIME_CONFIG, FILE, Collections.emptySet(), 0, 0, "test", EventAction.UPDATE, "DMAAP-LOAD")); doNothing().when(s).trigger(); doNothing().when(s).cleanup(); s.process("/aai/"); @@ -171,7 +171,7 @@ public class SendMigrationNotificationsTest extends AAISetup { @Test public void processEverythingBatched2() throws Exception { SendMigrationNotifications s = spy(new SendMigrationNotifications( - loaderFactory, schemaVersions, REALTIME_CONFIG, FILE, Collections.EMPTY_SET, 0, 2, "test", EventAction.UPDATE, "DMAAP-LOAD")); + loaderFactory, schemaVersions, REALTIME_CONFIG, FILE, Collections.emptySet(), 0, 2, "test", EventAction.UPDATE, "DMAAP-LOAD")); doNothing().when(s).trigger(); doNothing().when(s).cleanup(); s.process("/aai/"); @@ -182,7 +182,7 @@ public class SendMigrationNotificationsTest extends AAISetup { @Test public void processEverythingBatched3() throws Exception { SendMigrationNotifications s = spy(new SendMigrationNotifications( - loaderFactory, schemaVersions, REALTIME_CONFIG, FILE, Collections.EMPTY_SET, 0, 3, "test", EventAction.UPDATE, "DMAAP-LOAD")); + loaderFactory, schemaVersions, REALTIME_CONFIG, FILE, Collections.emptySet(), 0, 3, "test", EventAction.UPDATE, "DMAAP-LOAD")); doNothing().when(s).trigger(); doNothing().when(s).cleanup(); s.process("/aai/"); @@ -190,4 +190,4 @@ public class SendMigrationNotificationsTest extends AAISetup { } -}
\ No newline at end of file +} |