diff options
Diffstat (limited to 'components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/service/TopicServiceTest.java')
-rw-r--r-- | components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/service/TopicServiceTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/service/TopicServiceTest.java b/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/service/TopicServiceTest.java index 8b25ec53..265ec963 100644 --- a/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/service/TopicServiceTest.java +++ b/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/service/TopicServiceTest.java @@ -89,6 +89,8 @@ public class TopicServiceTest { dbSet.add(new Db("Elasticsearch")); topic.setDbs(dbSet); + when(config.getDefaultTopicName()).thenReturn(DEFAULT_TOPIC_NAME); + when(topicRepository.findById(DEFAULT_TOPIC_NAME)).thenReturn(Optional.of(topic)); when(topicRepository.findById(name)).thenReturn(Optional.of(topic)); when(topicRepository.findById(null)).thenReturn(Optional.empty()); doThrow(IOException.class).when(elasticsearchService).ensureTableExist(name); |