Skip to content

Commit f9f53f2

Browse files
committed
Fix empty model test
1 parent 0576a83 commit f9f53f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import java.util.Map;
4444

4545
import static org.openapitools.codegen.CodegenConstants.*;
46-
import static org.openapitools.codegen.TestUtils.assertFileContains;
46+
import static org.openapitools.codegen.languages.KotlinClientCodegen.GENERATE_ONEOF_ANYOF_WRAPPERS;
4747

4848
@SuppressWarnings("static-method")
4949
public class KotlinClientCodegenModelTest {
@@ -502,7 +502,7 @@ private void givenSchemaObjectPropertyNameContainsDollarSignWhenGenerateThenDoll
502502
// properties.put(CodegenConstants.LIBRARY, ClientLibrary.JVM_KTOR);
503503
properties.put(CodegenConstants.ENUM_PROPERTY_NAMING, CodegenConstants.ENUM_PROPERTY_NAMING_TYPE.UPPERCASE.toString());
504504
properties.put(SERIALIZATION_LIBRARY, KotlinClientCodegen.SERIALIZATION_LIBRARY_TYPE.gson.toString());
505-
properties.put(KotlinClientCodegen.GENERATE_ONEOF_ANYOF_WRAPPERS, true);
505+
properties.put(GENERATE_ONEOF_ANYOF_WRAPPERS, true);
506506
properties.put(API_PACKAGE, "com.toasttab.service.scim.api");
507507
properties.put(MODEL_PACKAGE, "com.toasttab.service.scim.models");
508508
properties.put(PACKAGE_NAME, "com.toasttab.service.scim");
@@ -661,6 +661,7 @@ public void emptyModelKotlinxSerializationTest() throws IOException {
661661
.setGeneratorName("kotlin")
662662
.setAdditionalProperties(new HashMap<>() {{
663663
put(CodegenConstants.MODEL_PACKAGE, "model");
664+
put(GENERATE_ONEOF_ANYOF_WRAPPERS, false);
664665
put(SERIALIZATION_LIBRARY, "kotlinx_serialization");
665666
}})
666667
.setInputSpec("src/test/resources/3_0/kotlin/empty-model.yaml")

0 commit comments

Comments
 (0)