aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceClient
diff options
context:
space:
mode:
authorkjaniak <kornel.janiak@nokia.com>2020-02-17 23:04:25 +0100
committerkjaniak <kornel.janiak@nokia.com>2020-02-18 09:23:42 +0100
commit6e2234ce6ee4492ba65dead0329e2a24fe1a75c3 (patch)
tree1d1d17e14b5d3b76d121e28e2d33d34fe8a42a7a /certServiceClient
parent6e639f193bcae8b8dfbd286dce456a39275dd988 (diff)
Fix for not running tests
Junit5 version lowered. 5.6.0 Junit5 has issues with maven-surefire-plugin Issue-ID: AAF-996 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Change-Id: I17489f106d42d4c0b66d8f68ef500fba2b68f261
Diffstat (limited to 'certServiceClient')
-rw-r--r--certServiceClient/pom.xml21
-rw-r--r--certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java1
-rw-r--r--certServiceClient/src/test/java/org/onap/aaf/certservice/client/CertServiceClientAppTest.java1
3 files changed, 13 insertions, 10 deletions
diff --git a/certServiceClient/pom.xml b/certServiceClient/pom.xml
index 2b4f2d02..2f3aa62e 100644
--- a/certServiceClient/pom.xml
+++ b/certServiceClient/pom.xml
@@ -16,26 +16,29 @@
<packaging>jar</packaging>
<build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${maven-surefire-plugin.version}</version>
- </plugin>
- </plugins>
- </pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ </plugin>
+ </plugins>
</build>
<dependencies>
+
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
</dependency>
<dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
</dependency>
+
</dependencies>
diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java
index f3b1c0f3..8b200be3 100644
--- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java
+++ b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java
@@ -23,6 +23,5 @@ package org.onap.aaf.certservice.client;
public class CertServiceClientApp {
public static void main(String[] args) {
- System.exit(0);
}
} \ No newline at end of file
diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/CertServiceClientAppTest.java b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/CertServiceClientAppTest.java
index a79095c4..e9d169a0 100644
--- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/CertServiceClientAppTest.java
+++ b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/CertServiceClientAppTest.java
@@ -22,6 +22,7 @@ package org.onap.aaf.certservice.client;
import org.junit.jupiter.api.Test;
class CertServiceClientAppTest {
+
// Sonar check for this test disabled due to lack of assertion in test.
// Intention of this test is to check if app runs without exiting Java.
@Test