aboutsummaryrefslogtreecommitdiffstats
path: root/validate/sample-mock-generator
diff options
context:
space:
mode:
Diffstat (limited to 'validate/sample-mock-generator')
-rw-r--r--validate/sample-mock-generator/pom.xml6
-rw-r--r--validate/sample-mock-generator/src/test/java/org/onap/cli/http/mock/MockJsonGeneratorTest.java3
2 files changed, 8 insertions, 1 deletions
diff --git a/validate/sample-mock-generator/pom.xml b/validate/sample-mock-generator/pom.xml
index a61ffb41..db65484b 100644
--- a/validate/sample-mock-generator/pom.xml
+++ b/validate/sample-mock-generator/pom.xml
@@ -48,6 +48,12 @@
<scope>test</scope>
</dependency>
<dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>org.jmockit</groupId>
<artifactId>jmockit</artifactId>
<version>1.43</version>
diff --git a/validate/sample-mock-generator/src/test/java/org/onap/cli/http/mock/MockJsonGeneratorTest.java b/validate/sample-mock-generator/src/test/java/org/onap/cli/http/mock/MockJsonGeneratorTest.java
index 0e0c0f59..d4697978 100644
--- a/validate/sample-mock-generator/src/test/java/org/onap/cli/http/mock/MockJsonGeneratorTest.java
+++ b/validate/sample-mock-generator/src/test/java/org/onap/cli/http/mock/MockJsonGeneratorTest.java
@@ -18,6 +18,7 @@ package org.onap.cli.http.mock;
import java.io.IOException;
import org.junit.Test;
+import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
public class MockJsonGeneratorTest {
@@ -32,6 +33,6 @@ public class MockJsonGeneratorTest {
mockResponse.setStatus(200);
mockResponse.setJson("{\"value\" : \"234sdf-345\"}");
- MockJsonGenerator.generateMocking(mockRequest, mockResponse, "target/test");
+ assertDoesNotThrow(() -> MockJsonGenerator.generateMocking(mockRequest, mockResponse, "target/test"));
}
}