diff options
author | sawantmandar <ms5838@att.com> | 2019-01-18 14:59:33 -0600 |
---|---|---|
committer | sawantmandar <ms5838@att.com> | 2019-01-18 15:15:42 -0600 |
commit | 844dfc285307a6ec1772ef3e741c109fd567f2c3 (patch) | |
tree | bcca2f48852a42d3a7b0a2c98570c79d1a31cde5 /src/test | |
parent | 917ad05e95a80991f06f0d79a09154d9d696a681 (diff) |
removing unused imports from src and test classes
Change-Id: I9d6ea81ca5ad34505bfb540658e063c83e7353de
Signed-off-by: sawantmandar <ms5838@att.com>
Issue-ID: DMAAP-975
Diffstat (limited to 'src/test')
25 files changed, 0 insertions, 118 deletions
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; |