Skip to content

Commit

Permalink
move tests out of fs root
Browse files Browse the repository at this point in the history
  • Loading branch information
mbien committed Oct 6, 2024
1 parent 24e1723 commit da133c7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,7 @@ private void doRunTest(String code, String inject) throws Exception {
}

private void doRunTest(String code, String inject, Consumer<CompilationInfo> callback) throws Exception {

FileObject srcDir = FileUtil.createMemoryFileSystem().getRoot();
FileObject srcDir = FileUtil.createMemoryFileSystem().getRoot().createFolder("test");
FileObject src = srcDir.createData("Test.java");

// parse original source
Expand Down Expand Up @@ -437,7 +436,7 @@ private void doRunTest(String code, String inject, Consumer<CompilationInfo> cal

private void doVerifyFullReparse(String code, String inject) throws Exception {

FileObject srcDir = FileUtil.createMemoryFileSystem().getRoot();
FileObject srcDir = FileUtil.createMemoryFileSystem().getRoot().createFolder("test");
FileObject src = srcDir.createData("Test.java");

// parse original source
Expand Down

0 comments on commit da133c7

Please sign in to comment.