diff options
author | 2018-09-13 23:48:50 +0100 | |
---|---|---|
committer | 2018-09-13 23:49:32 +0100 | |
commit | cd68fc9bae7d6258f77ff59c1431e4f925f61a4c (patch) | |
tree | 53054a7c8e8738644785039c3a200c6b23d4b3ed /testsuites/performance/performance-context-metrics/src/test | |
parent | 4cfa2e2d98f6877d54da304ef17f096284430908 (diff) |
Address sonar/Checkstyle Issues
Sweep through Apex codebase to fix most ceheckstyle and
straightforward sonar issues.
Issue-ID: POLICY-1034
Change-Id: I149d9a94ad893affc93573e8de5e3304b6bdde2d
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'testsuites/performance/performance-context-metrics/src/test')
-rw-r--r-- | testsuites/performance/performance-context-metrics/src/test/java/org/onap/policy/apex/testsuites/performance/context/metrics/TestMetrics.java (renamed from testsuites/performance/performance-context-metrics/src/test/java/org/onap/policy/apex/plugins/context/metrics/TestMetrics.java) | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/testsuites/performance/performance-context-metrics/src/test/java/org/onap/policy/apex/plugins/context/metrics/TestMetrics.java b/testsuites/performance/performance-context-metrics/src/test/java/org/onap/policy/apex/testsuites/performance/context/metrics/TestMetrics.java index 04b756417..6414fa81a 100644 --- a/testsuites/performance/performance-context-metrics/src/test/java/org/onap/policy/apex/plugins/context/metrics/TestMetrics.java +++ b/testsuites/performance/performance-context-metrics/src/test/java/org/onap/policy/apex/testsuites/performance/context/metrics/TestMetrics.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.policy.apex.plugins.context.metrics; +package org.onap.policy.apex.testsuites.performance.context.metrics; import static org.junit.Assert.fail; @@ -32,10 +32,14 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import org.onap.policy.apex.context.test.utils.NetworkUtils; +import org.onap.policy.apex.testsuites.performance.context.metrics.ConcurrentContextMetrics; import org.onap.policy.common.utils.resources.ResourceUtils; import org.slf4j.ext.XLogger; import org.slf4j.ext.XLoggerFactory; +/** + * The Class TestMetrics. + */ public class TestMetrics { // Logger for this class private static final XLogger LOGGER = XLoggerFactory.getXLogger(TestMetrics.class); @@ -47,6 +51,11 @@ public class TestMetrics { @Rule public final TemporaryFolder folder = new TemporaryFolder(); + /** + * Configure. + * + * @throws Exception the exception + */ @BeforeClass public static void configure() throws Exception { System.setProperty(JAVA_NET_PREFER_IPV4_STACK, "true"); @@ -63,8 +72,13 @@ public class TestMetrics { } + /** + * Gets the single jvm metrics. + * + * @throws IOException Signals that an I/O exception has occurred. + */ @Test - public void getSingleJVMMetrics() throws IOException { + public void getSingleJvmMetrics() throws IOException { final File zookeeperDirectory = folder.newFolder("zookeeperDirectory"); final String[] args = {"singleJVMTestNL", "1", "32", "1000", "65536", "0", "localhost", "62181", zookeeperDirectory.getAbsolutePath()}; |