File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
modules/openapi-generator/src/test/java/org/openapitools/codegen/asciidoc Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public void testIncludeMarkupFilterDoesNotIncludeMissingFile() {
3434 @ Test
3535 public void testIncludeMarkupFilterFoundFileOk () throws IOException {
3636
37- File tempFile = File .createTempFile ("IncludeMarkupFilterTestDummyfile" , "-adoc" );
37+ File tempFile = Files .createTempFile ("IncludeMarkupFilterTestDummyfile" , "-adoc" ). toFile ( );
3838 tempFile .deleteOnExit ();
3939
4040 final AsciidocDocumentationCodegen generator = new AsciidocDocumentationCodegen ();
Original file line number Diff line number Diff line change 22
33import java .io .File ;
44import java .io .IOException ;
5+ import java .nio .file .Files ;
56import java .util .Map ;
67
78import org .mockito .MockitoAnnotations ;
@@ -32,7 +33,7 @@ public void testLinkMarkupFilterDoesNotLinkMissingFile() {
3233 @ Test
3334 public void testLinkMarkupFilterLinksFoundFileOk () throws IOException {
3435
35- File tempFile = File .createTempFile ("LinkMarkupFilterTestDummyfile" , ".adoc" );
36+ File tempFile = Files .createTempFile ("LinkMarkupFilterTestDummyfile" , ".adoc" ). toFile ( );
3637 tempFile .deleteOnExit ();
3738
3839 final AsciidocDocumentationCodegen generator = new AsciidocDocumentationCodegen ();
You can’t perform that action at this time.
0 commit comments