Skip to content

Commit

Permalink
Use tempdir in JUnit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
itohro committed Feb 11, 2016
1 parent ddedb2f commit 8240364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ build
.gradle
gradle.prefs
.idea/workspace.xml
.idea/uiDesigner.xml
src/test/resources/test
.idea/uiDesigner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public class ConverterTestResource extends ExternalResource
{
public static final String RESOURCE_DIR = "src/test/resources/source";
public static final String TEST_DIR = "src/test/resources/test";
public static final String TEST_DIR = System.getProperty("java.io.tmpdir") + "gsc_ec_converter_test";
private ExitMock exitMock = ExitMock.getInstance();

@Override
Expand Down Expand Up @@ -94,7 +94,7 @@ private void clean(Path path) throws IOException
catch (IOException e)
{
throw new RuntimeException("Resources may not have been cleaned-up... " +
"Manually delete files under \"src/test/resources/test\" and rerun", e);
"Manually delete files under " + TEST_DIR + " and rerun", e);
}
});
Files.delete(path);
Expand Down

0 comments on commit 8240364

Please sign in to comment.