summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/onap/dmaap/dmf/mr/service/impl/EventsServiceImplTest.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/test/java/org/onap/dmaap/dmf/mr/service/impl/EventsServiceImplTest.java b/src/test/java/org/onap/dmaap/dmf/mr/service/impl/EventsServiceImplTest.java
index 4abbe89..f9178e1 100644
--- a/src/test/java/org/onap/dmaap/dmf/mr/service/impl/EventsServiceImplTest.java
+++ b/src/test/java/org/onap/dmaap/dmf/mr/service/impl/EventsServiceImplTest.java
@@ -402,16 +402,7 @@ public class EventsServiceImplTest {
}
- @Test
- public void pushEvents_shouldFail_whenRequestedTopicDoesNotExist() throws Exception {
- when(configurationReader.getfMetaBroker()).thenReturn(dmaapKafkaMetaBroker);
- when(dmaapKafkaMetaBroker.getTopic("testTopic")).thenReturn(null);
-
- thrown.expect(CambriaApiException.class);
- thrown.expectMessage(containsString(String.valueOf(HttpStatus.SC_NOT_FOUND)));
-
- eventsService.pushEvents(dMaapContext, "testTopic", iStream, "5", "13:00:00");
- }
+
@Test
public void pushEvents_shouldFailDmaapAuthorization_whenTopicOwnerIsSet_andUserHasNoWritePermissionToTopic()