From 085fed0cc5b2aca4bd4af81c7ccd5ad4d3aa5a10 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Sat, 23 Feb 2019 20:01:28 +0000 Subject: Fix checkstyle errors on tests Issue-ID: POLICY-1513 Change-Id: Id61df043adf398a0493916f6116ff5858c60fb29 Signed-off-by: liamfallon --- .../apex/plugins/event/carrier/kafka/ApexKafkaConsumerTest.java | 6 ++++++ .../apex/plugins/event/carrier/kafka/ApexKafkaProducerTest.java | 4 ++++ .../event/carrier/kafka/KafkaCarrierTechnologyParametersTest.java | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src') diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaConsumerTest.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaConsumerTest.java index 6c9cb6609..bbebbc3b8 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaConsumerTest.java +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaConsumerTest.java @@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.event.carrier.kafka; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; + import org.junit.Before; import org.junit.Test; import org.onap.policy.apex.service.engine.event.ApexEventException; @@ -39,6 +40,11 @@ public class ApexKafkaConsumerTest { ApexEventReceiver incomingEventReceiver = null; ApexEventProducer apexKafkaProducer = null; + /** + * Set up testing. + * + * @throws ApexEventException on test set up errors. + */ @Before public void setUp() throws ApexEventException { apexKafkaConsumer = new ApexKafkaConsumer(); diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaProducerTest.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaProducerTest.java index 3c70d0b60..7300474c7 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaProducerTest.java +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaProducerTest.java @@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.event.carrier.kafka; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; + import org.junit.Before; import org.junit.Test; import org.onap.policy.apex.service.engine.event.ApexEventException; @@ -39,6 +40,9 @@ public class ApexKafkaProducerTest { SynchronousEventCache synchronousEventCache = null; private static final long DEFAULT_SYNCHRONOUS_EVENT_TIMEOUT = 1000; + /** + * Set up testing. + */ @Before public void setUp() throws Exception { apexKafkaProducer = new ApexKafkaProducer(); diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/KafkaCarrierTechnologyParametersTest.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/KafkaCarrierTechnologyParametersTest.java index e26a64bb6..6eca1dcf0 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/KafkaCarrierTechnologyParametersTest.java +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/KafkaCarrierTechnologyParametersTest.java @@ -21,6 +21,7 @@ package org.onap.policy.apex.plugins.event.carrier.kafka; import static org.junit.Assert.assertNotNull; + import java.util.Properties; import org.junit.Before; import org.junit.Test; @@ -33,6 +34,11 @@ public class KafkaCarrierTechnologyParametersTest { Properties kafkaConsumerProperties = null; GroupValidationResult result = null; + /** + * Set up testing. + * + * @throws Exception on setup errors + */ @Before public void setUp() throws Exception { kafkaCarrierTechnologyParameters = new KafkaCarrierTechnologyParameters(); -- cgit 1.2.3-korg