@@ -4476,30 +4476,9 @@ public void multiLineTagDescription() throws IOException {
4476
4476
4477
4477
@ Test
4478
4478
public void testSSEOperationSupport () throws Exception {
4479
-
4480
- File output = Files .createTempDirectory ("test" ).toFile ().getCanonicalFile ();
4481
- output .deleteOnExit ();
4482
-
4483
- final OpenAPI openAPI = TestUtils .parseFlattenSpec ("src/test/resources/3_0/sse.yaml" );
4484
- final SpringCodegen codegen = new SpringCodegen ();
4485
- codegen .setOpenAPI (openAPI );
4486
- codegen .setOutputDir (output .getAbsolutePath ());
4487
-
4488
- codegen .additionalProperties ().put (SSE , "true" );
4489
- codegen .additionalProperties ().put (REACTIVE , "true" );
4490
- codegen .additionalProperties ().put (INTERFACE_ONLY , "false" );
4491
- codegen .additionalProperties ().put (DELEGATE_PATTERN , "true" );
4492
-
4493
- ClientOptInput input = new ClientOptInput ();
4494
- input .openAPI (openAPI );
4495
- input .config (codegen );
4496
-
4497
- DefaultGenerator generator = new DefaultGenerator ();
4498
- generator .setGeneratorPropertyDefault (CodegenConstants .APIS , "true" );
4499
- generator .setGenerateMetadata (false );
4500
-
4501
- Map <String , File > files = generator .opts (input ).generate ().stream ()
4502
- .collect (Collectors .toMap (File ::getName , Function .identity ()));
4479
+ Map <String , Object > additionalProperties = Map .of (SSE , true , REACTIVE , "true" , INTERFACE_ONLY , "false" ,
4480
+ DELEGATE_PATTERN , "true" );
4481
+ Map <String , File > files = generateFromContract ("src/test/resources/3_0/sse.yaml" , "spring-boot" , additionalProperties );
4503
4482
4504
4483
MapAssert .assertThatMap (files ).isNotEmpty ();
4505
4484
File api = files .get ("PathApi.java" );
0 commit comments