added test case to TestDmaapProducerImpl.java 31/62031/2
authorSandeep J <sandeejh@in.ibm.com>
Thu, 23 Aug 2018 09:45:25 +0000 (15:15 +0530)
committerTakamune Cho <tc012c@att.com>
Thu, 23 Aug 2018 20:49:10 +0000 (20:49 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: I39e99b4036ca7668bd739a9fa17cb850c5bea330
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/test/java/org/onap/appc/adapter/messaging/dmaap/impl/TestDmaapProducerImpl.java

index d37b3fe..e16e059 100644 (file)
@@ -136,10 +136,12 @@ public class TestDmaapProducerImpl {
         producer.close();
     }
 
-    @Ignore
+    
     @Test
     public void testCloseWithClient() {
-        fail("Not yet implemented");
+        producer.post("partition", "data");
+        assertNotNull(producer);
+        producer.close();
     }
 
     @Test