Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 9ed1de7

Browse files
committed
Fixes java tests
1 parent d5dba3c commit 9ed1de7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/openapijsonschematools/codegen/generators/DefaultGeneratorTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void testDeeplyNestedAdditionalPropertiesImports() {
102102
final OpenAPI openApi = TestUtils.parseFlattenSpec("src/test/resources/3_0/additional-properties-deeply-nested.yaml");
103103
codegen.setOpenAPI(openApi);
104104
PathItem path = openApi.getPaths().get("/ping");
105-
CodegenOperation operation = codegen.fromOperation(path.getPost(), getOperationPath("/ping", "post"), null, null);
105+
CodegenOperation operation = codegen.fromOperation(path.getPost(), getOperationPath("/ping", "post"), null, null, null);
106106
Assert.assertEquals(operation.responses.get("default").imports, null);
107107
}
108108

@@ -1217,7 +1217,7 @@ public void testLeadingSlashIsAddedIfMissing() {
12171217
codegen.preprocessOpenAPI(openAPI);
12181218
codegen.setOpenAPI(openAPI);
12191219

1220-
TreeMap<CodegenKey, CodegenPathItem> paths = codegen.fromPaths(openAPI.getPaths(), null);
1220+
TreeMap<CodegenKey, CodegenPathItem> paths = codegen.fromPaths(openAPI.getPaths(), null, null);
12211221
CodegenKey path1 = codegen.getKey("/here", "paths");
12221222
Assert.assertTrue(paths.containsKey(path1));
12231223
CodegenKey path2 = codegen.getKey("/some/path", "paths");

0 commit comments

Comments
 (0)