diff options
author | liamfallon <liam.fallon@est.tech> | 2018-12-07 22:28:49 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2018-12-08 11:45:20 +0000 |
commit | 92dd84cb28d341e9fff892adb4b616b8b795be91 (patch) | |
tree | d330e221c7c7b6970d8419067b97712fcef3735a /testsuites/performance | |
parent | e6753352980648bac92aff9a7295639349ea1295 (diff) |
Fix checkstyle issues
Some minor line length and formatting checkstyle warnings fixed.
Change-Id: Ib92069bbdb444560083e6d0dbf5d16a3ab824d82
Issue-ID: POLICY-1074
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'testsuites/performance')
2 files changed, 9 insertions, 11 deletions
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); |