From 92dd84cb28d341e9fff892adb4b616b8b795be91 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Fri, 7 Dec 2018 22:28:49 +0000 Subject: Fix checkstyle issues Some minor line length and formatting checkstyle warnings fixed. Change-Id: Ib92069bbdb444560083e6d0dbf5d16a3ab824d82 Issue-ID: POLICY-1074 Signed-off-by: liamfallon --- .../benchmark/eventgenerator/EventBatchTest.java | 5 +++-- .../benchmark/eventgenerator/EventGeneratorTest.java | 15 ++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) (limited to 'testsuites/performance/performance-benchmark-test/src/test') diff --git a/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventBatchTest.java b/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventBatchTest.java index f315f6402..821cb68bd 100644 --- a/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventBatchTest.java +++ b/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventBatchTest.java @@ -37,12 +37,13 @@ public class EventBatchTest { EventBatch batch = new EventBatch(1, "TheApexClient"); assertNotNull(batch); - assertEquals("\"nameSpace\": \"org.onap.policy.apex.sample.events\"", batch.getBatchAsJsonString().substring(4, 53)); + assertEquals("\"nameSpace\": \"org.onap.policy.apex.sample.events\"", + batch.getBatchAsJsonString().substring(4, 53)); EventBatchStats stats = batch.getStats(); assertEquals(1, stats.getBatchSize()); InputEvent ie = batch.getInputEvent(0); - assertEquals("org.onap.policy.apex.sample.events",ie.getNameSpace()); + assertEquals("org.onap.policy.apex.sample.events", ie.getNameSpace()); } } diff --git a/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventGeneratorTest.java b/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventGeneratorTest.java index e37ea963c..3d37b3f4c 100644 --- a/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventGeneratorTest.java +++ b/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventGeneratorTest.java @@ -55,8 +55,8 @@ public class EventGeneratorTest { EventGenerator eventGenerator = new EventGenerator(pars); - final String[] args = - { "-rfr", "target", "-c", "target/examples/config/SampleDomain/REST2RESTJsonEventJavascript.json" }; + final String[] args = { "-rfr", "target", "-c", + "target/examples/config/SampleDomain/REST2RESTJsonEventJavascript.json" }; final ApexMain apexMain = new ApexMain(args); @@ -76,8 +76,7 @@ public class EventGeneratorTest { public void testEventGeneratorBadParams() { System.setOut(new PrintStream(outContent)); - final String[] args = - { "-zzz" }; + final String[] args = { "-zzz" }; EventGenerator.main(args); @@ -92,9 +91,7 @@ public class EventGeneratorTest { public void testEventGeneratorHelp() { System.setOut(new PrintStream(outContent)); - final String[] args = { - "-h" - }; + final String[] args = { "-h" }; EventGenerator.main(args); @@ -114,7 +111,7 @@ public class EventGeneratorTest { public void run() { EventGenerator.main(null); } - }).start(); + }).start(); ThreadUtilities.sleep(1000); final String outString = outContent.toString(); @@ -127,7 +124,7 @@ public class EventGeneratorTest { @Test public void testEventGeneratorOutfileGood() { - EventGeneratorParameters pars =new EventGeneratorParameters(); + EventGeneratorParameters pars = new EventGeneratorParameters(); pars.setOutFile("target/statsOutFile.json"); EventGenerator generator = new EventGenerator(pars); -- cgit 1.2.3-korg