From bf80e854b11fc8570ceb0ea161a95803a346fb8b Mon Sep 17 00:00:00 2001 From: Congcong Peng Date: Wed, 28 Feb 2018 10:13:25 +0800 Subject: remove dependency Issue-ID: HOLMES-115 Change-Id: I0f453bb10ed6f8c975046bcc8007d34fa27d60bd Signed-off-by: Congcong Peng --- .../java/org/onap/holmes/dsa/dmaappolling/SubscriberTest.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'dmaap-dsa/src/test') diff --git a/dmaap-dsa/src/test/java/org/onap/holmes/dsa/dmaappolling/SubscriberTest.java b/dmaap-dsa/src/test/java/org/onap/holmes/dsa/dmaappolling/SubscriberTest.java index d1d3653..bc6486c 100644 --- a/dmaap-dsa/src/test/java/org/onap/holmes/dsa/dmaappolling/SubscriberTest.java +++ b/dmaap-dsa/src/test/java/org/onap/holmes/dsa/dmaappolling/SubscriberTest.java @@ -15,12 +15,8 @@ */ package org.onap.holmes.dsa.dmaappolling; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.sun.org.apache.regexp.internal.RE; -import io.dropwizard.cli.Cli; import org.easymock.EasyMock; import org.glassfish.hk2.api.ServiceLocator; -import org.glassfish.jersey.client.ClientConfig; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -133,7 +129,7 @@ public class SubscriberTest { Response response = PowerMock.createMock(Response.class); Invocation.Builder builder = PowerMock.createMock(Invocation.Builder.class); - EasyMock.expect(ClientBuilder.newClient(EasyMock.anyObject(ClientConfig.class))).andReturn(client); + EasyMock.expect(ClientBuilder.newClient()).andReturn(client); EasyMock.expect(client.target(EasyMock.anyObject(String.class))).andReturn(webTarget); EasyMock.expect(webTarget.queryParam("timeout", 15000)).andReturn(webTarget); EasyMock.expect(webTarget.request()).andReturn(builder); @@ -144,8 +140,7 @@ public class SubscriberTest { List vesAlarms = new Subscriber().subscribe(); - assertThat(new ObjectMapper().writeValueAsString(vesAlarm), - equalTo(new ObjectMapper().writeValueAsString(vesAlarms.get(0)))); + assertThat(vesAlarm, equalTo(vesAlarms.get(0))); PowerMock.verifyAll(); } -- cgit 1.2.3-korg