From 7b04a1754482ba02a49d4d6376dc45e4cd6551f4 Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Thu, 3 Oct 2019 13:13:06 -0700 Subject: Cleanup of dmaap adapter Remvoing the part of the appc-dmaap-adapter that uses the dmaapClient library. This part of the code was not being used and the dmaap client library has not been updated for a long time. Also removed several un-used dependencies. Change-Id: I690afaecbfe53d88576c43aa8d114fde54c0fe48 Signed-off-by: Patrick Brady Issue-ID: APPC-1744 --- .../org/onap/appc/listener/LCM/operation/ProviderOperationsTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'appc-event-listener/appc-event-listener-bundle') diff --git a/appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/operation/ProviderOperationsTest.java b/appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/operation/ProviderOperationsTest.java index b6ea54c09..fc6c14d16 100644 --- a/appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/operation/ProviderOperationsTest.java +++ b/appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/operation/ProviderOperationsTest.java @@ -27,7 +27,7 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; -import com.att.aft.dme2.internal.jersey.core.util.Base64; +import org.apache.commons.codec.binary.Base64; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; @@ -85,7 +85,8 @@ public class ProviderOperationsTest { assertEquals("http://123.1.2.3", providerOperations.getUrl()); String newAuthentication = providerOperations.setAuthentication("new_user", "new_password"); - assertEquals("new_user:new_password", Base64.base64Decode(newAuthentication)); + String authStr = "new_user:new_password"; + assertEquals(new String(Base64.encodeBase64(authStr.getBytes())), newAuthentication); } @Test -- cgit 1.2.3-korg