summaryrefslogtreecommitdiffstats
path: root/validate
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2020-08-06 03:27:35 +0000
committerGerrit Code Review <gerrit@onap.org>2020-08-06 03:27:35 +0000
commit29e3d400b200b0567caa6c5768d51ebc2ce2a891 (patch)
tree898d66b059c384909a2bda622e45d1036cca45d6 /validate
parent85d106fbd8da63243157c4d79b45c13c9c2d7a2f (diff)
parent2bdd4f82bb6d2d7928044228bf0893cf6aa5921d (diff)
Merge "Code improvement - Pending sonar issues"
Diffstat (limited to 'validate')
-rw-r--r--validate/validation/pom.xml18
-rw-r--r--validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java3
2 files changed, 3 insertions, 18 deletions
diff --git a/validate/validation/pom.xml b/validate/validation/pom.xml
index c2701d68..5d7cd430 100644
--- a/validate/validation/pom.xml
+++ b/validate/validation/pom.xml
@@ -128,24 +128,6 @@
<version>2.6</version>
</dependency>
</dependencies>
-<!-- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.9</version>
- <configuration>
- <useManifestOnlyJar>false</useManifestOnlyJar>
- <useSystemClassLoader>false</useSystemClassLoader>
- <additionalClasspathElements>
- <additionalClasspathElement>
- ${project.build.directory}/../../deployment/zip/target/deployunzip/lib/*.jar
- </additionalClasspathElement>
- </additionalClasspathElements>
- </configuration>
- </plugin>
- </plugins>
- </build> -->
<build><plugins>
<!--Step-2:- SonarCloud migration from SonarQube -->
<plugin>
diff --git a/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java b/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java
index d24fe1e7..ca01dd0a 100644
--- a/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java
+++ b/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java
@@ -52,6 +52,7 @@ import org.onap.cli.fw.utils.OnapCommandDiscoveryUtils;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
+import static org.junit.Assert.assertFalse;
public class OnapValidationTest {
@@ -121,6 +122,7 @@ public class OnapValidationTest {
}
}
}
+ assertFalse(OnapCommandRegistrar.getRegistrar().getAvailableProductVersions().isEmpty());
}
@Test
@@ -144,6 +146,7 @@ public class OnapValidationTest {
}
}
}
+ assertFalse(OnapCommandRegistrar.getRegistrar().getAvailableProductVersions().isEmpty());
}
@Test