diff options
32 files changed, 1 insertions, 139 deletions
diff --git a/src/main/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandler.java b/src/main/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandler.java index da0ba62..9197ca4 100644 --- a/src/main/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandler.java +++ b/src/main/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandler.java @@ -22,8 +22,6 @@ package org.onap.dmaap.mr.dme.client; -import java.util.Map; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -31,13 +29,8 @@ import com.att.aft.dme2.api.util.DME2ExchangeFaultContext; import com.att.aft.dme2.api.util.DME2ExchangeReplyHandler; import com.att.aft.dme2.api.util.DME2ExchangeResponseContext; import org.onap.dmaap.mr.client.MRClientFactory; -import org.onap.dmaap.mr.client.impl.MRSimplerBatchPublisher; - - - - - public class HeaderReplyHandler implements DME2ExchangeReplyHandler { +public class HeaderReplyHandler implements DME2ExchangeReplyHandler { private Logger fLog = LoggerFactory.getLogger ( this.getClass().getName () ); diff --git a/src/main/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandler.java b/src/main/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandler.java index 967ccf3..70e0d1b 100644 --- a/src/main/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandler.java +++ b/src/main/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandler.java @@ -22,7 +22,6 @@ package org.onap.dmaap.mr.dme.client; import java.io.File; import java.io.FileWriter; -import java.io.InputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/org/onap/dmaap/mr/dme/client/SimpleExamplePublisher.java b/src/main/java/org/onap/dmaap/mr/dme/client/SimpleExamplePublisher.java index edb3994..de0d461 100644 --- a/src/main/java/org/onap/dmaap/mr/dme/client/SimpleExamplePublisher.java +++ b/src/main/java/org/onap/dmaap/mr/dme/client/SimpleExamplePublisher.java @@ -24,18 +24,11 @@ package org.onap.dmaap.mr.dme.client; import java.io.IOException; -import java.util.List; import java.util.Map; - -import java.util.concurrent.TimeUnit; - import javax.ws.rs.core.MultivaluedMap; - import org.json.JSONObject; - import org.onap.dmaap.mr.client.MRBatchingPublisher; import org.onap.dmaap.mr.client.MRClientFactory; -import org.onap.dmaap.mr.client.MRPublisher.message; /** * An example of how to use the Java publisher. diff --git a/src/main/java/org/onap/dmaap/mr/test/clients/SamplePublisher.java b/src/main/java/org/onap/dmaap/mr/test/clients/SamplePublisher.java index 29d7f85..5f8768c 100644 --- a/src/main/java/org/onap/dmaap/mr/test/clients/SamplePublisher.java +++ b/src/main/java/org/onap/dmaap/mr/test/clients/SamplePublisher.java @@ -30,7 +30,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.onap.dmaap.mr.client.MRBatchingPublisher; -import org.onap.dmaap.mr.client.MRClientFactory; import org.onap.dmaap.mr.client.MRClientBuilders.PublisherBuilder; import org.onap.dmaap.mr.client.MRPublisher.message; diff --git a/src/main/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisher.java b/src/main/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisher.java index 770d916..50fd22c 100644 --- a/src/main/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisher.java +++ b/src/main/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisher.java @@ -26,7 +26,6 @@ import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; -import java.io.PrintWriter; import java.util.List; import java.util.Properties; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisherWithResponse.java b/src/main/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisherWithResponse.java index 33d1164..d2b77ef 100644 --- a/src/main/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisherWithResponse.java +++ b/src/main/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisherWithResponse.java @@ -24,9 +24,7 @@ import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; -import java.util.List; import java.util.Properties; -import java.util.concurrent.TimeUnit; import org.json.JSONObject; import org.onap.dmaap.mr.client.MRBatchingPublisher; import org.onap.dmaap.mr.client.MRClientFactory; diff --git a/src/main/java/org/onap/dmaap/mr/tools/MessageCommand.java b/src/main/java/org/onap/dmaap/mr/tools/MessageCommand.java index 5016c95..451aed5 100644 --- a/src/main/java/org/onap/dmaap/mr/tools/MessageCommand.java +++ b/src/main/java/org/onap/dmaap/mr/tools/MessageCommand.java @@ -34,7 +34,6 @@ import com.att.nsa.cmdtool.CommandNotReadyException; import org.onap.dmaap.mr.client.MRBatchingPublisher; import org.onap.dmaap.mr.client.MRClientFactory; import org.onap.dmaap.mr.client.MRConsumer; -import org.onap.dmaap.mr.client.MRClientBuilders.PublisherBuilder; import org.onap.dmaap.mr.client.MRPublisher.message; public class MessageCommand implements Command<MRCommandContext> diff --git a/src/test/java/org/onap/dmaap/mr/client/HostSelectorTest.java b/src/test/java/org/onap/dmaap/mr/client/HostSelectorTest.java index ecc4b51..549c541 100644 --- a/src/test/java/org/onap/dmaap/mr/client/HostSelectorTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/HostSelectorTest.java @@ -21,9 +21,6 @@ package org.onap.dmaap.mr.client; import static org.junit.Assert.assertTrue; - -import java.util.concurrent.TimeUnit; - import org.junit.After; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/onap/dmaap/mr/client/MRClientBuildersTest.java b/src/test/java/org/onap/dmaap/mr/client/MRClientBuildersTest.java index 388a91c..80f6ec2 100644 --- a/src/test/java/org/onap/dmaap/mr/client/MRClientBuildersTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/MRClientBuildersTest.java @@ -26,14 +26,10 @@ import static org.junit.Assert.assertTrue; import java.util.ArrayList; import java.util.Collection; -import java.util.concurrent.TimeUnit; import org.junit.After; import org.junit.Before; import org.junit.Test; - -import org.onap.dmaap.mr.client.HostSelector; -import org.onap.dmaap.mr.client.MRClient; import org.onap.dmaap.mr.client.MRClientBuilders; public class MRClientBuildersTest { diff --git a/src/test/java/org/onap/dmaap/mr/client/impl/DMaapClientUtilTest.java b/src/test/java/org/onap/dmaap/mr/client/impl/DMaapClientUtilTest.java index 6fb31a6..21c3b6c 100644 --- a/src/test/java/org/onap/dmaap/mr/client/impl/DMaapClientUtilTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/impl/DMaapClientUtilTest.java @@ -35,8 +35,6 @@ import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; -import com.att.aft.dme2.internal.jersey.core.spi.factory.ResponseImpl; - public class DMaapClientUtilTest { Builder builder; diff --git a/src/test/java/org/onap/dmaap/mr/client/impl/MRBaseClientTest.java b/src/test/java/org/onap/dmaap/mr/client/impl/MRBaseClientTest.java index 6fe0e70..6279d82 100644 --- a/src/test/java/org/onap/dmaap/mr/client/impl/MRBaseClientTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/impl/MRBaseClientTest.java @@ -40,10 +40,7 @@ import org.json.JSONException; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; -import org.mockito.InjectMocks; -import org.mockito.Mock; import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; import org.powermock.api.mockito.PowerMockito; import org.powermock.core.classloader.annotations.PowerMockIgnore; import org.powermock.core.classloader.annotations.PrepareForTest; diff --git a/src/test/java/org/onap/dmaap/mr/client/impl/MRConsumerImplTest.java b/src/test/java/org/onap/dmaap/mr/client/impl/MRConsumerImplTest.java index 5d8dccd..153ed29 100644 --- a/src/test/java/org/onap/dmaap/mr/client/impl/MRConsumerImplTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/impl/MRConsumerImplTest.java @@ -29,7 +29,6 @@ import junit.framework.TestCase; import org.junit.Test; -import org.onap.dmaap.mr.client.MRClientFactory; import org.onap.dmaap.mr.client.impl.MRConstants; import org.onap.dmaap.mr.client.impl.MRConsumerImpl; diff --git a/src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java b/src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java index 6aff75e..9d86d48 100644 --- a/src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java @@ -22,23 +22,15 @@ package org.onap.dmaap.mr.client.impl; import java.io.IOException; -import java.net.MalformedURLException; import java.util.Collection; import java.util.LinkedList; import java.util.Set; - import org.junit.Before; -import org.junit.Rule; import org.junit.Test; - -import static com.github.tomakehurst.wiremock.client.WireMock.*; import static org.junit.Assert.assertTrue; - import com.att.nsa.apiClient.http.HttpException; import com.att.nsa.apiClient.http.HttpObjectNotFoundException; -import org.onap.dmaap.mr.client.MRClient.MRApiException; import org.onap.dmaap.mr.client.MRTopicManager.TopicInfo; -import com.github.tomakehurst.wiremock.junit.WireMockRule; public class MRMetaClientTest { diff --git a/src/test/java/org/onap/dmaap/mr/client/impl/MRSimplerBatchConsumerTest.java b/src/test/java/org/onap/dmaap/mr/client/impl/MRSimplerBatchConsumerTest.java index af02c2f..8c71f2f 100644 --- a/src/test/java/org/onap/dmaap/mr/client/impl/MRSimplerBatchConsumerTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/impl/MRSimplerBatchConsumerTest.java @@ -25,20 +25,12 @@ package org.onap.dmaap.mr.client.impl; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; -import java.util.List; import java.util.Properties; -import java.util.concurrent.TimeUnit; - -import org.json.JSONObject; -import org.junit.After; -import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.onap.dmaap.mr.client.MRClientFactory; import org.onap.dmaap.mr.client.MRConsumer; -import org.onap.dmaap.mr.client.MRPublisher.message; -import org.onap.dmaap.mr.client.response.MRPublisherResponse; public class MRSimplerBatchConsumerTest { diff --git a/src/test/java/org/onap/dmaap/mr/client/impl/MRSimplerBatchPublisherTest.java b/src/test/java/org/onap/dmaap/mr/client/impl/MRSimplerBatchPublisherTest.java index 2f9b519..aeda891 100644 --- a/src/test/java/org/onap/dmaap/mr/client/impl/MRSimplerBatchPublisherTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/impl/MRSimplerBatchPublisherTest.java @@ -30,7 +30,6 @@ import java.util.Properties; import java.util.concurrent.TimeUnit; import org.json.JSONObject; -import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/onap/dmaap/mr/client/response/MRConsumerResponseTest.java b/src/test/java/org/onap/dmaap/mr/client/response/MRConsumerResponseTest.java index 3f727a4..0676fd7 100644 --- a/src/test/java/org/onap/dmaap/mr/client/response/MRConsumerResponseTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/response/MRConsumerResponseTest.java @@ -21,15 +21,10 @@ package org.onap.dmaap.mr.client.response; import static org.junit.Assert.assertTrue; - -import java.util.concurrent.TimeUnit; - import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.onap.dmaap.mr.client.HostSelector; - public class MRConsumerResponseTest { private MRConsumerResponse test = null; diff --git a/src/test/java/org/onap/dmaap/mr/client/response/MRPublisherResponseTest.java b/src/test/java/org/onap/dmaap/mr/client/response/MRPublisherResponseTest.java index f4957db..19c829a 100644 --- a/src/test/java/org/onap/dmaap/mr/client/response/MRPublisherResponseTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/response/MRPublisherResponseTest.java @@ -21,15 +21,10 @@ package org.onap.dmaap.mr.client.response; import static org.junit.Assert.assertTrue; - -import java.util.concurrent.TimeUnit; - import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.onap.dmaap.mr.client.HostSelector; - public class MRPublisherResponseTest { private MRPublisherResponse response = null; diff --git a/src/test/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandlerTest.java b/src/test/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandlerTest.java index df236c9..044c1a1 100644 --- a/src/test/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandlerTest.java +++ b/src/test/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandlerTest.java @@ -22,20 +22,11 @@ package org.onap.dmaap.mr.dme.client; import static org.junit.Assert.assertTrue; -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.concurrent.TimeUnit; import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.onap.dmaap.mr.client.HostSelector; -import org.onap.dmaap.mr.client.MRPublisher.message; -import org.onap.dmaap.mr.test.support.MRBatchingPublisherMock.Listener; - public class HeaderReplyHandlerTest { private HeaderReplyHandler handler = null; diff --git a/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandlerTest.java b/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandlerTest.java index 5aa3018..c8d7f64 100644 --- a/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandlerTest.java +++ b/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandlerTest.java @@ -20,22 +20,10 @@ package org.onap.dmaap.mr.dme.client; -import static org.junit.Assert.assertTrue; - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.concurrent.TimeUnit; - import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.onap.dmaap.mr.client.HostSelector; -import org.onap.dmaap.mr.client.MRPublisher.message; -import org.onap.dmaap.mr.test.support.MRBatchingPublisherMock.Listener; - public class PreferredRouteReplyHandlerTest { private PreferredRouteReplyHandler handler = null; diff --git a/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteRequestHandlerTest.java b/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteRequestHandlerTest.java index cf5b607..167f3ff 100644 --- a/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteRequestHandlerTest.java +++ b/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteRequestHandlerTest.java @@ -20,22 +20,10 @@ package org.onap.dmaap.mr.dme.client; -import static org.junit.Assert.assertTrue; - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.concurrent.TimeUnit; - import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.onap.dmaap.mr.client.HostSelector; -import org.onap.dmaap.mr.client.MRPublisher.message; -import org.onap.dmaap.mr.test.support.MRBatchingPublisherMock.Listener; - public class PreferredRouteRequestHandlerTest { private PreferredRouteRequestHandler handler = null; diff --git a/src/test/java/org/onap/dmaap/mr/dme/client/SimpleExamplePublisherTest.java b/src/test/java/org/onap/dmaap/mr/dme/client/SimpleExamplePublisherTest.java index 1240d8b..477e92c 100644 --- a/src/test/java/org/onap/dmaap/mr/dme/client/SimpleExamplePublisherTest.java +++ b/src/test/java/org/onap/dmaap/mr/dme/client/SimpleExamplePublisherTest.java @@ -22,20 +22,10 @@ package org.onap.dmaap.mr.dme.client; import static org.junit.Assert.assertTrue; -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.concurrent.TimeUnit; - import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.onap.dmaap.mr.client.HostSelector; -import org.onap.dmaap.mr.client.MRPublisher.message; -import org.onap.dmaap.mr.test.support.MRBatchingPublisherMock.Listener; - public class SimpleExamplePublisherTest { private SimpleExamplePublisher pub = null; diff --git a/src/test/java/org/onap/dmaap/mr/logging/MRAppenderTest.java b/src/test/java/org/onap/dmaap/mr/logging/MRAppenderTest.java index 8332606..66121eb 100644 --- a/src/test/java/org/onap/dmaap/mr/logging/MRAppenderTest.java +++ b/src/test/java/org/onap/dmaap/mr/logging/MRAppenderTest.java @@ -22,14 +22,11 @@ package org.onap.dmaap.mr.logging; import static org.junit.Assert.assertTrue; -import java.util.concurrent.TimeUnit; import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.onap.dmaap.mr.client.HostSelector; - public class MRAppenderTest { private MRAppender appender = null; diff --git a/src/test/java/org/onap/dmaap/mr/test/clients/ConsolePublisherTest.java b/src/test/java/org/onap/dmaap/mr/test/clients/ConsolePublisherTest.java index 218e6c8..be0574a 100644 --- a/src/test/java/org/onap/dmaap/mr/test/clients/ConsolePublisherTest.java +++ b/src/test/java/org/onap/dmaap/mr/test/clients/ConsolePublisherTest.java @@ -22,7 +22,6 @@ package org.onap.dmaap.mr.test.clients; import static org.junit.Assert.assertTrue; -import java.io.IOException; import org.junit.After; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/onap/dmaap/mr/test/clients/ProtocolTypeConstantsTest.java b/src/test/java/org/onap/dmaap/mr/test/clients/ProtocolTypeConstantsTest.java index 52310bf..573be98 100644 --- a/src/test/java/org/onap/dmaap/mr/test/clients/ProtocolTypeConstantsTest.java +++ b/src/test/java/org/onap/dmaap/mr/test/clients/ProtocolTypeConstantsTest.java @@ -22,10 +22,6 @@ package org.onap.dmaap.mr.test.clients; import static org.junit.Assert.assertTrue; -import java.io.IOException; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; - import org.junit.After; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/onap/dmaap/mr/test/clients/SampleConsumerTest.java b/src/test/java/org/onap/dmaap/mr/test/clients/SampleConsumerTest.java index 6c5d93f..8d359f4 100644 --- a/src/test/java/org/onap/dmaap/mr/test/clients/SampleConsumerTest.java +++ b/src/test/java/org/onap/dmaap/mr/test/clients/SampleConsumerTest.java @@ -22,7 +22,6 @@ package org.onap.dmaap.mr.test.clients; import static org.junit.Assert.assertTrue; -import java.io.IOException; import org.junit.After; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/onap/dmaap/mr/test/clients/SamplePublisherTest.java b/src/test/java/org/onap/dmaap/mr/test/clients/SamplePublisherTest.java index 3a012a7..33f80e5 100644 --- a/src/test/java/org/onap/dmaap/mr/test/clients/SamplePublisherTest.java +++ b/src/test/java/org/onap/dmaap/mr/test/clients/SamplePublisherTest.java @@ -22,7 +22,6 @@ package org.onap.dmaap.mr.test.clients; import static org.junit.Assert.assertTrue; -import java.io.IOException; import org.junit.After; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExampleConsumerTest.java b/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExampleConsumerTest.java index 310ea45..1ccc839 100644 --- a/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExampleConsumerTest.java +++ b/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExampleConsumerTest.java @@ -22,7 +22,6 @@ package org.onap.dmaap.mr.test.clients; import static org.junit.Assert.assertTrue; -import java.io.IOException; import org.junit.After; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExampleConsumerWithReturnResponseTest.java b/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExampleConsumerWithReturnResponseTest.java index 3c3b3d7..d814125 100644 --- a/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExampleConsumerWithReturnResponseTest.java +++ b/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExampleConsumerWithReturnResponseTest.java @@ -22,7 +22,6 @@ package org.onap.dmaap.mr.test.clients; import static org.junit.Assert.assertTrue; -import java.io.IOException; import org.junit.After; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisherWithResponseTest.java b/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisherWithResponseTest.java index 44dd7cf..08dec2b 100644 --- a/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisherWithResponseTest.java +++ b/src/test/java/org/onap/dmaap/mr/test/clients/SimpleExamplePublisherWithResponseTest.java @@ -22,7 +22,6 @@ package org.onap.dmaap.mr.test.clients; import static org.junit.Assert.assertTrue; -import java.io.IOException; import org.junit.After; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/onap/dmaap/mr/test/support/MRBatchingPublisherMockTest.java b/src/test/java/org/onap/dmaap/mr/test/support/MRBatchingPublisherMockTest.java index 1d6bd7c..af76c52 100644 --- a/src/test/java/org/onap/dmaap/mr/test/support/MRBatchingPublisherMockTest.java +++ b/src/test/java/org/onap/dmaap/mr/test/support/MRBatchingPublisherMockTest.java @@ -22,19 +22,13 @@ package org.onap.dmaap.mr.test.support; import static org.junit.Assert.assertTrue; -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; import java.util.ArrayList; -import java.util.concurrent.TimeUnit; import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.onap.dmaap.mr.client.HostSelector; import org.onap.dmaap.mr.client.MRPublisher.message; -import org.onap.dmaap.mr.test.support.MRBatchingPublisherMock.Listener; public class MRBatchingPublisherMockTest { private MRBatchingPublisherMock pub = null; diff --git a/src/test/java/org/onap/dmaap/mr/test/support/MRConsumerMockTest.java b/src/test/java/org/onap/dmaap/mr/test/support/MRConsumerMockTest.java index 9ae49e0..b3c4174 100644 --- a/src/test/java/org/onap/dmaap/mr/test/support/MRConsumerMockTest.java +++ b/src/test/java/org/onap/dmaap/mr/test/support/MRConsumerMockTest.java @@ -24,16 +24,11 @@ import static org.junit.Assert.assertTrue; import java.io.IOException; import java.util.ArrayList; -import java.util.concurrent.TimeUnit; import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.onap.dmaap.mr.client.HostSelector; -import org.onap.dmaap.mr.client.MRPublisher.message; -import org.onap.dmaap.mr.test.support.MRBatchingPublisherMock.Entry; - public class MRConsumerMockTest { private MRConsumerMock cons = null; private MRConsumerMock.Entry entry = null; diff --git a/src/test/java/org/onap/dmaap/mr/tools/MRCommandContextTest.java b/src/test/java/org/onap/dmaap/mr/tools/MRCommandContextTest.java index 038e321..8e778d4 100644 --- a/src/test/java/org/onap/dmaap/mr/tools/MRCommandContextTest.java +++ b/src/test/java/org/onap/dmaap/mr/tools/MRCommandContextTest.java @@ -22,22 +22,11 @@ package org.onap.dmaap.mr.tools; import static org.junit.Assert.assertTrue; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.PrintStream; -import java.util.ArrayList; -import java.util.concurrent.TimeUnit; import org.junit.After; import org.junit.Before; import org.junit.Test; -import com.att.nsa.apiClient.http.HttpTracer; -import com.att.nsa.cmdtool.CommandNotReadyException; -import org.onap.dmaap.mr.client.HostSelector; -import org.onap.dmaap.mr.client.MRClient; -import org.onap.dmaap.mr.client.MRPublisher.message; -import org.onap.dmaap.mr.test.support.MRBatchingPublisherMock.Entry; public class MRCommandContextTest { private MRCommandContext command = null; |