Skip to content

Commit

Permalink
Switch from memory fs to plain old folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbien committed Oct 3, 2024
1 parent 698b079 commit 5b18e7e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public PartialReparseTest(String name) {
@Override
protected void setUp() throws Exception {
super.setUp();
clearWorkDir();
SourceUtilsTestUtil.prepareTest(new String[0], new Object[0]);
// ensure JavaKit is present, so that NbEditorDocument is eventually created.
// it handles PositionRefs differently than PlainDocument/PlainEditorKit.
Expand Down Expand Up @@ -385,7 +386,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.createFolder(getWorkDir());
FileObject src = srcDir.createData("Test.java");

// parse original source
Expand Down Expand Up @@ -437,7 +438,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.createFolder(getWorkDir());
FileObject src = srcDir.createData("Test.java");

// parse original source
Expand Down

0 comments on commit 5b18e7e

Please sign in to comment.