Skip to content

Commit ea81dfc

Browse files
committed
[TEST] ensure project path exists
1 parent 38e7656 commit ea81dfc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/test/java/net/seesharpsoft/intellij/plugins/csv/CsvStorageHelperTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public class CsvStorageHelperTest extends BasePlatformTestCase {
1010
@Override
1111
protected void setUp() throws Exception {
1212
super.setUp();
13+
Paths.get(this.getProject().getBasePath()).toFile().mkdirs();
1314
Paths.get(this.getProject().getBasePath(), "csv_file_test.csv").toFile().createNewFile();
1415
Paths.get(this.getProject().getBasePath(), "test").toFile().mkdir();
1516
Paths.get(this.getProject().getBasePath(), "test", "py_file_test.py").toFile().createNewFile();

src/test/java/net/seesharpsoft/intellij/plugins/csv/components/CsvFileAttributesTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ protected String getTestDataPath() {
1616
@Override
1717
protected void setUp() throws Exception {
1818
super.setUp();
19+
Paths.get(this.getProject().getBasePath()).toFile().mkdirs();
1920
Paths.get(this.getProject().getBasePath(), "csv_file_test.csv").toFile().createNewFile();
2021
Paths.get(this.getProject().getBasePath(), "test").toFile().mkdir();
2122
Paths.get(this.getProject().getBasePath(), "test", "py_file_test.py").toFile().createNewFile();

0 commit comments

Comments
 (0)