Skip to content

Commit

Permalink
Set prefix to 'junit-' in standard TempDirFactory (#3806)
Browse files Browse the repository at this point in the history
To improve readability of generated directory names.
  • Loading branch information
bjmi committed May 6, 2024
1 parent f21a9c7 commit 486a58d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -81,7 +81,7 @@ class Standard implements TempDirFactory {

public static final TempDirFactory INSTANCE = new Standard();

private static final String TEMP_DIR_PREFIX = "junit";
private static final String TEMP_DIR_PREFIX = "junit-";

public Standard() {
}
Expand Down
Expand Up @@ -697,7 +697,7 @@ private static class Factory implements TempDirFactory {
@Override
public Path createTempDirectory(AnnotatedElementContext elementContext, ExtensionContext extensionContext)
throws Exception {
return Files.createTempDirectory("junit");
return Files.createTempDirectory("junit-");
}
}

Expand Down

0 comments on commit 486a58d

Please sign in to comment.