forked from loafle/openapi-generator-original
Test case was using an invalid mixture of File.getAbsoluteFile|Path() and File.getCanonicalFile|Path() to identify generated output files.
This commit is contained in:
committed by
William Cheng
parent
d18bf044e8
commit
9bb94fe95d
@@ -558,7 +558,7 @@ public class JavaJAXRSCXFExtServerCodegenTest {
|
||||
|
||||
@Test
|
||||
public void testAddOperationToGroup() throws Exception {
|
||||
File output = Files.createTempDirectory("test").toFile();
|
||||
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||
output.deleteOnExit();
|
||||
|
||||
OpenAPI openAPI = new OpenAPIParser().readLocation("src/test/resources/3_0/tags.yaml", null, new ParseOptions())
|
||||
@@ -634,11 +634,11 @@ public class JavaJAXRSCXFExtServerCodegenTest {
|
||||
assertEquals(group5List.get(1).subresourceOperation, true);
|
||||
}
|
||||
|
||||
@Test(enabled = false)
|
||||
@Test()
|
||||
public void testGenerateOperationBodyWithCodedTestData() throws Exception {
|
||||
File output = Files.createTempDirectory("test").toFile();
|
||||
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||
output.deleteOnExit();
|
||||
String outputPath = output.getCanonicalPath().replace('\\', '/');
|
||||
String outputPath = output.getAbsolutePath().replace('\\', '/');
|
||||
|
||||
OpenAPI openAPI = new OpenAPIParser()
|
||||
.readLocation("src/test/resources/3_0/petstore.yaml", null, new ParseOptions()).getOpenAPI();
|
||||
@@ -680,11 +680,11 @@ public class JavaJAXRSCXFExtServerCodegenTest {
|
||||
checkFile(generator, outputPath + "/test-data-control.json", false);
|
||||
}
|
||||
|
||||
@Test(enabled = false)
|
||||
@Test()
|
||||
public void testGenerateOperationBodyWithJsonTestData() throws Exception {
|
||||
File output = Files.createTempDirectory("test").toFile();
|
||||
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||
output.deleteOnExit();
|
||||
String outputPath = output.getCanonicalPath().replace('\\', '/');
|
||||
String outputPath = output.getAbsolutePath().replace('\\', '/');
|
||||
|
||||
OpenAPI openAPI = new OpenAPIParser()
|
||||
.readLocation("src/test/resources/3_0/petstore.yaml", null, new ParseOptions()).getOpenAPI();
|
||||
|
||||
Reference in New Issue
Block a user