summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@orange.com>2022-03-08 13:01:02 +0100
committerLukasz Rajewski <lukasz.rajewski@orange.com>2022-03-08 13:01:02 +0100
commit0f396a03a1d6327b17b21f513056d641f4afa33c (patch)
tree7eb2f93c9739bfc298f603fdae0548cc30b86453
parent2ec6e4cd49f0a4d1355cf84ea3a27aa617d541ab (diff)
Removed jupiter test dependency
Issue-ID: SO-3869 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I9448df3c9899e047fff4bf3535868258869bbfe1
-rwxr-xr-xso-cnf-adapter-application/pom.xml5
-rw-r--r--so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/healthcheck/HealthCheckServiceTest.java7
-rw-r--r--so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/upgrade/InstanceUpgradeServiceTest.java3
3 files changed, 6 insertions, 9 deletions
diff --git a/so-cnf-adapter-application/pom.xml b/so-cnf-adapter-application/pom.xml
index 0daa32c..2928d4b 100755
--- a/so-cnf-adapter-application/pom.xml
+++ b/so-cnf-adapter-application/pom.xml
@@ -168,11 +168,6 @@
<type>pom</type>
</dependency>
<dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>test</scope>
diff --git a/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/healthcheck/HealthCheckServiceTest.java b/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/healthcheck/HealthCheckServiceTest.java
index 33d3104..8803521 100644
--- a/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/healthcheck/HealthCheckServiceTest.java
+++ b/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/healthcheck/HealthCheckServiceTest.java
@@ -1,8 +1,8 @@
package org.onap.so.adapters.cnf.service.healthcheck;
import com.github.tomakehurst.wiremock.junit.WireMockRule;
+import org.junit.Test;
import org.junit.Rule;
-import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
@@ -14,6 +14,7 @@ import org.onap.so.adapters.cnf.model.healthcheck.HealthCheckResponse;
import org.onap.so.adapters.cnf.model.healthcheck.K8sRbInstanceHealthCheck;
import org.onap.so.adapters.cnf.model.healthcheck.K8sRbInstanceHealthCheckSimple;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
import java.util.UUID;
@@ -25,8 +26,8 @@ import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
@SpringBootTest
-@RunWith(MockitoJUnitRunner.class)
-class HealthCheckServiceTest {
+@RunWith(SpringRunner.class)
+public class HealthCheckServiceTest {
private final int portNumber = 8443;
@Rule
public WireMockRule wireMockRule = new WireMockRule(portNumber);
diff --git a/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/upgrade/InstanceUpgradeServiceTest.java b/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/upgrade/InstanceUpgradeServiceTest.java
index 74d258d..a4e7983 100644
--- a/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/upgrade/InstanceUpgradeServiceTest.java
+++ b/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/upgrade/InstanceUpgradeServiceTest.java
@@ -35,6 +35,7 @@ import org.onap.so.adapters.cnf.model.MulticloudInstanceRequest;
import org.onap.so.adapters.cnf.model.upgrade.InstanceUpgradeRequest;
import org.onap.so.client.exception.BadResponseException;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
import java.util.Map;
@@ -46,7 +47,7 @@ import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@SpringBootTest
-@RunWith(MockitoJUnitRunner.class)
+@RunWith(SpringRunner.class)
public class InstanceUpgradeServiceTest {
@InjectMocks