|
43 | 43 | import java.util.Map; |
44 | 44 |
|
45 | 45 | 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; |
47 | 47 |
|
48 | 48 | @SuppressWarnings("static-method") |
49 | 49 | public class KotlinClientCodegenModelTest { |
@@ -502,7 +502,7 @@ private void givenSchemaObjectPropertyNameContainsDollarSignWhenGenerateThenDoll |
502 | 502 | // properties.put(CodegenConstants.LIBRARY, ClientLibrary.JVM_KTOR); |
503 | 503 | properties.put(CodegenConstants.ENUM_PROPERTY_NAMING, CodegenConstants.ENUM_PROPERTY_NAMING_TYPE.UPPERCASE.toString()); |
504 | 504 | 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); |
506 | 506 | properties.put(API_PACKAGE, "com.toasttab.service.scim.api"); |
507 | 507 | properties.put(MODEL_PACKAGE, "com.toasttab.service.scim.models"); |
508 | 508 | properties.put(PACKAGE_NAME, "com.toasttab.service.scim"); |
@@ -661,6 +661,7 @@ public void emptyModelKotlinxSerializationTest() throws IOException { |
661 | 661 | .setGeneratorName("kotlin") |
662 | 662 | .setAdditionalProperties(new HashMap<>() {{ |
663 | 663 | put(CodegenConstants.MODEL_PACKAGE, "model"); |
| 664 | + put(GENERATE_ONEOF_ANYOF_WRAPPERS, false); |
664 | 665 | put(SERIALIZATION_LIBRARY, "kotlinx_serialization"); |
665 | 666 | }}) |
666 | 667 | .setInputSpec("src/test/resources/3_0/kotlin/empty-model.yaml") |
|
0 commit comments