Skip to content

Commit 41bf2e4

Browse files
committed
Test fix
1 parent ed78110 commit 41bf2e4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3604,16 +3604,13 @@ public void givenComplexObjectHasDefaultValueWhenGenerateThenDefaultAssignmentsA
36043604
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
36053605
output.deleteOnExit();
36063606

3607-
JavaClientCodegen codegen = new JavaClientCodegen();
3608-
codegen.setOutputDir(output.getAbsolutePath());
36093607
Map<String, Object> properties = new HashMap<>();
36103608
properties.put(APIS, false);
36113609
properties.put(API_DOCS, false);
36123610
properties.put(API_TESTS, false);
36133611
properties.put(MODEL_DOCS, false);
36143612
properties.put(MODEL_TESTS, false);
36153613

3616-
codegen.additionalProperties().putAll(properties);
36173614
Generator generator = new DefaultGenerator();
36183615
CodegenConfigurator configurator = new CodegenConfigurator()
36193616
.setInputSpec("src/test/resources/3_1/issue_21051.yaml")
@@ -3625,7 +3622,7 @@ public void givenComplexObjectHasDefaultValueWhenGenerateThenDefaultAssignmentsA
36253622
.generate();
36263623
System.out.println("Generator Settings: " + clientOptInput.getGeneratorSettings());
36273624
String outputPath = output.getAbsolutePath() + "/src/main/java/org/openapitools";
3628-
File testModel = new File(outputPath, "/client/model/Test.java");
3625+
File testModel = new File(outputPath, "/client/model/TestCase.java");
36293626
String fileContent = Files.readString(testModel.toPath());
36303627

36313628
System.out.println(fileContent);

0 commit comments

Comments
 (0)