Skip to content
Snippets Groups Projects
Commit f6d21dbd authored by Jueun Park's avatar Jueun Park
Browse files

edited OpenAPIMain_test.java

parent 2036dd92
No related branches found
No related tags found
1 merge request!4Resolve "Show tests in CI"
Pipeline #13084 passed
...@@ -18,6 +18,7 @@ import org.junit.jupiter.api.DisplayName; ...@@ -18,6 +18,7 @@ import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource; import org.junit.jupiter.params.provider.MethodSource;
import org.junit.jupiter.params.provider.ValueSource;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
...@@ -38,8 +39,7 @@ public class OpenAPIMain_test { ...@@ -38,8 +39,7 @@ public class OpenAPIMain_test {
} }
@MethodSource("getResources") @MethodSource("getResources")
@DisplayName("Parser Test (System Messages)") @ParameterizedTest
@ParameterizedTest(name = "Parser test for resource file ''{0}''")
static void parserTest(File file) throws Exception { static void parserTest(File file) throws Exception {
OpenAPIObject jastAddObject; OpenAPIObject jastAddObject;
OpenAPI POJOOpenAPI; OpenAPI POJOOpenAPI;
...@@ -84,7 +84,7 @@ public class OpenAPIMain_test { ...@@ -84,7 +84,7 @@ public class OpenAPIMain_test {
compareJson(expectedNode, actualNode, Paths.get(file.getPath())); compareJson(expectedNode, actualNode, Paths.get(file.getPath()));
} }
static Stream<File> getResources() { static Stream<File> resources() {
return resources.stream(); return resources.stream();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment