aboutsummaryrefslogtreecommitdiffstats
path: root/dcae-analytics-test/src/main
diff options
context:
space:
mode:
authorTony Hansen <tony@att.com>2017-09-22 13:50:25 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-22 13:50:25 +0000
commit475cb8c867038acd73ff540173d54bac3947c610 (patch)
treebaa71798b2dcd15404ede12f7655e722363b5290 /dcae-analytics-test/src/main
parentf015a8c92d5f50ce069c8011e738a7aec910c86f (diff)
parent699852522db59909e8a6cd0fc4f9e592ed800542 (diff)
Merge "Fixing checkstyle and javadoc errors"
Diffstat (limited to 'dcae-analytics-test/src/main')
-rw-r--r--dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java4
-rw-r--r--dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsUnitTest.java2
-rw-r--r--dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/runner/GuiceJUnitRunner.java4
3 files changed, 4 insertions, 6 deletions
diff --git a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java
index c1d939e..4698f21 100644
--- a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java
+++ b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java
@@ -86,8 +86,8 @@ abstract class BaseDCAEAnalyticsCommonTest {
final String newLine = System.getProperty("line.separator");
String line = reader.readLine();
while (line != null) {
- result.append(line);
- result.append(newLine);
+ result.append(line)
+ .append(newLine);
line = reader.readLine();
}
jsonFileInputStream.close();
diff --git a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsUnitTest.java b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsUnitTest.java
index 84feb1d..ddc996a 100644
--- a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsUnitTest.java
+++ b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsUnitTest.java
@@ -26,6 +26,4 @@ package org.openecomp.dcae.apod.analytics.test;
* @author Rajiv Singla . Creation Date: 10/6/2016.
*/
public abstract class BaseDCAEAnalyticsUnitTest extends BaseDCAEAnalyticsCommonTest {
-
-
}
diff --git a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/runner/GuiceJUnitRunner.java b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/runner/GuiceJUnitRunner.java
index 6c6071e..6353442 100644
--- a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/runner/GuiceJUnitRunner.java
+++ b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/runner/GuiceJUnitRunner.java
@@ -40,7 +40,7 @@ public class GuiceJUnitRunner extends BlockJUnit4ClassRunner {
private static final Logger LOG = LoggerFactory.getLogger(GuiceJUnitRunner.class);
- private Injector injector;
+ private final Injector injector;
public GuiceJUnitRunner(Class<?> klass) throws InitializationError {
super(klass);
@@ -71,7 +71,7 @@ public class GuiceJUnitRunner extends BlockJUnit4ClassRunner {
Module[] modules = new Module[classes.length];
for (int i = 0; i < classes.length; i++) {
try {
- modules[i] = (Module) (classes[i]).newInstance();
+ modules[i] = (Module) classes[i].newInstance();
} catch (InstantiationException | IllegalAccessException e) {
throw new InitializationError(e);
}