Skip to content

Commit

Permalink
clean up test
Browse files Browse the repository at this point in the history
Signed-off-by: Max Lepikhin <[email protected]>
  • Loading branch information
maxlepikhin committed Dec 12, 2024
1 parent f6d611e commit 2e6a0a3
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@
import org.junit.rules.TemporaryFolder;

public class FileUtilsTest {
private final TemporaryFolder tempDir = new TemporaryFolder();
private TemporaryFolder tempDir;

@Before
public void setUp() throws Exception {
tempDir = new TemporaryFolder();
tempDir.create();
}

@After
public void tearUp() {
tempDir.delete();
public void tearDown() {
if (tempDir != null) {
tempDir.delete();
}
}

@Test
Expand Down

0 comments on commit 2e6a0a3

Please sign in to comment.