DockerFileUtilTest : Use JUnit5's @TempDir
annotation for creating temporary directories
#2775
Closed
2 tasks done
Labels
Milestone
Component
JKube Kit
Task description
Description
We are creating temporary directories for testing like this here
https://github.com/eclipse/jkube/blob/b64915ec6090dcb0171e45b6372052278210e6f3/jkube-kit/build/api/src/test/java/org/eclipse/jkube/kit/build/api/helper/DockerFileUtilTest.java#L83-L84
We should probably refactor this code to use
@TempDir
annotation . There are already some tests using this annotation, maybe make this a member level field.Expected Behavior
Files.createTempDirectory
is replaced with@TempDir
annotation fieldAcceptance Criteria
Files.createTempDirectory
is replaced with@TempDir
annotation fieldnew FileOutputStream(ret)
useFiles.newOutputStream(ret.toPath())
The text was updated successfully, but these errors were encountered: