File tree Expand file tree Collapse file tree
modules/openapi-generator/src/test/java/org/openapitools/codegen/rust Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -367,7 +367,8 @@ public void testOneOfMemberWithoutTitleOrType() throws IOException {
367367 .setInputSpec ("src/test/resources/3_0/rust/oneof-member-without-type.yaml" )
368368 .setSkipOverwrite (false )
369369 .setOutputDir (target .toAbsolutePath ().toString ().replace ("\\ " , "/" ));
370- new DefaultGenerator ().opts (configurator .toClientOptInput ()).generate ();
370+ List <File > files = new DefaultGenerator ().opts (configurator .toClientOptInput ()).generate ();
371+ files .forEach (File ::deleteOnExit );
371372 Path outputPath = Path .of (target .toString (), "/src/models/conditions.rs" );
372373 TestUtils .assertFileExists (outputPath );
373374 TestUtils .assertFileContains (outputPath , "WorkflowPathCondition(Box<models::WorkflowPathCondition>)" );
You can’t perform that action at this time.
0 commit comments