Skip to content

Commit

Permalink
update junit pioneer, and update usages of JUnit Pioneer `@TempDirect…
Browse files Browse the repository at this point in the history
…ory` to the JUnit Jupiter `@TempDir` (note that the pioneer temp directory removed in v1.0.0 per https://junit-pioneer.org/docs/temp-directory/ )
  • Loading branch information
MysterAitch committed Nov 7, 2020
1 parent edf45a0 commit ef6f5f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
import com.github.javaparser.utils.CodeGenerationUtils;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junitpioneer.jupiter.TempDirectory;
import org.junit.jupiter.api.io.TempDir;

import java.io.File;
import java.io.IOException;
Expand All @@ -57,8 +56,7 @@ void containsLocationInStorage() {
}

@Test
@ExtendWith(TempDirectory.class)
void folderTraversalDoesNotKeepFolderHandlesHostage(@TempDirectory.TempDir Path tempDir) throws IOException {
void folderTraversalDoesNotKeepFolderHandlesHostage(@TempDir Path tempDir) throws IOException {
File folder = tempDir.resolve("folder").toFile();
assertTrue(folder.mkdirs());

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
<dependency>
<groupId>org.junit-pioneer</groupId>
<artifactId>junit-pioneer</artifactId>
<version>0.5.6</version>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit ef6f5f0

Please sign in to comment.