From 3f22c622540a8efae1468f58f7043eea62e46e90 Mon Sep 17 00:00:00 2001 From: Taka Date: Wed, 14 Feb 2018 10:11:24 -0500 Subject: Junit Test for dmaap adapter Change-Id: I2dbe1375a23fcbd5e2974f9d112a162d4fbea328 Issue-ID: APPC-626 Signed-off-by: Taka --- .../adapter/messaging/dmaap/TestAppcDmaapAdapterActivator.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/test/java') diff --git a/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/test/java/org/onap/appc/adapter/messaging/dmaap/TestAppcDmaapAdapterActivator.java b/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/test/java/org/onap/appc/adapter/messaging/dmaap/TestAppcDmaapAdapterActivator.java index 5473bf7e0..ce2214ac1 100644 --- a/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/test/java/org/onap/appc/adapter/messaging/dmaap/TestAppcDmaapAdapterActivator.java +++ b/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/test/java/org/onap/appc/adapter/messaging/dmaap/TestAppcDmaapAdapterActivator.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP : APPC * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= @@ -32,19 +32,16 @@ import org.onap.appc.adapter.messaging.dmaap.AppcDmaapAdapterActivator; public class TestAppcDmaapAdapterActivator { - // TODO commented out to allow build to pass, need to analyze and fix -// @Test - public void coverage() { + @Test + public void test_dmaap_activator() { // This does nothing since the activator does nothing AppcDmaapAdapterActivator appc = new AppcDmaapAdapterActivator(); try { appc.start(null); appc.stop(null); - } catch (Exception e) { fail("Got exception when starting stopping. " + e.getMessage()); } assertNotNull(appc.getName()); } - } -- cgit 1.2.3-korg