updating test cases for more coverage
[dmaap/messagerouter/messageservice.git] / src / test / java / org / onap / dmaap / service / EventsRestServiceTest.java
index 7f30cf4..f7e701a 100644 (file)
@@ -256,6 +256,24 @@ public class EventsRestServiceTest {
 
        }
 
+       @Test
+       public void testGetEventsToException() throws CambriaApiException {
+               try {
+                       eventsRestRestService.getEventsToException("/topic");
+               } catch (CambriaApiException e) {
+                       assertTrue(true);
+               }
+       }
+       
+       @Test
+       public void testGetEventsToExceptionWithConsumerGroup() throws CambriaApiException {
+               try {
+                       eventsRestRestService.getEventsToException("/topic", "1234");
+               } catch (CambriaApiException e) {
+                       assertTrue(true);
+               }               
+       }
+       
        @Test
        public void testPushEvents_TopicExistException() throws CambriaApiException {