summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap
diff options
context:
space:
mode:
authormark.j.leonard <mark.j.leonard@gmail.com>2019-01-14 15:48:40 +0000
committermark.j.leonard <mark.j.leonard@gmail.com>2019-01-14 15:55:10 +0000
commitc7e9ff11f28009c4fbc13f7ed1a3ffbb765d358b (patch)
tree7b8382f8eb798a0fe42a4e946b2d3a1efb370a3a /src/test/java/org/onap
parent412d5d84761ca7d32061d4b8c9b8c22bbe4c014b (diff)
Fix Java code smells (Sonar and Checkstyle)
Change-Id: I04cb9b4dee75560777bb3533f6a58268e10fc217 Issue-ID: AAI-2057 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
Diffstat (limited to 'src/test/java/org/onap')
-rw-r--r--src/test/java/org/onap/aai/validation/config/TestTopicConfig.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/java/org/onap/aai/validation/config/TestTopicConfig.java b/src/test/java/org/onap/aai/validation/config/TestTopicConfig.java
index efe82b8..30e28d8 100644
--- a/src/test/java/org/onap/aai/validation/config/TestTopicConfig.java
+++ b/src/test/java/org/onap/aai/validation/config/TestTopicConfig.java
@@ -27,8 +27,6 @@ import javax.annotation.Resource;
import javax.inject.Inject;
import org.junit.Test;
import org.junit.runner.RunWith;
-import org.onap.aai.validation.config.TopicConfig;
-import org.onap.aai.validation.ValidationServiceApplication;
import org.onap.aai.validation.config.TopicConfig.Topic;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -65,7 +63,7 @@ public class TestTopicConfig {
@Test
public void testGetConsumerTopicConfigurationObjects() throws Exception {
- Topic eventTopic = new TopicConfig("aai-event","aai-data-integrity").new Topic();
+ Topic eventTopic = new TopicConfig("aai-event", "aai-data-integrity").new Topic();
eventTopic.setName("aai-event");
eventTopic.setHost("event-dummy-host");
eventTopic.setUsername("event-dummy-username");
@@ -74,7 +72,7 @@ public class TestTopicConfig {
eventTopic.setConsumerId("event-dummy-consumer-id");
eventTopic.setTransportType("event-dummy-transport-type");
- Topic exportTopic = new TopicConfig("aai-data-export","aai-data-integrity").new Topic();
+ Topic exportTopic = new TopicConfig("aai-data-export", "aai-data-integrity").new Topic();
exportTopic.setName("aai-data-export");
exportTopic.setHost("export-dummy-host");
exportTopic.setUsername("export-dummy-username");
@@ -90,7 +88,7 @@ public class TestTopicConfig {
@Test
public void testGetPublisherTopicConfigurationObjects() throws Exception {
- Topic integrityTopic = new TopicConfig("aai-data-export","aai-data-integrity").new Topic();
+ Topic integrityTopic = new TopicConfig("aai-data-export", "aai-data-integrity").new Topic();
integrityTopic.setName("aai-data-integrity");
integrityTopic.setHost("integrity-dummy-host");
integrityTopic.setPartition("integrity-dummy-partition");