diff --git a/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/KotlinCodeInsightTestCase.java b/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/KotlinCodeInsightTestCase.java index cf6072516e0..5eca6676619 100644 --- a/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/KotlinCodeInsightTestCase.java +++ b/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/KotlinCodeInsightTestCase.java @@ -23,13 +23,13 @@ import org.jetbrains.kotlin.test.JetTestUtils; public abstract class KotlinCodeInsightTestCase extends CodeInsightTestCase { @Override protected void setUp() throws Exception { - super.setUp(); VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory()); + super.setUp(); } @Override protected void tearDown() throws Exception { - VfsRootAccess.disallowRootAccess(JetTestUtils.getHomeDirectory()); super.tearDown(); + VfsRootAccess.disallowRootAccess(JetTestUtils.getHomeDirectory()); } } diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java b/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java index ffba4eba0b9..a48c43c5cf4 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java +++ b/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java @@ -73,8 +73,8 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase { @Override protected void setUp() throws Exception { - super.setUp(); VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory()); + super.setUp(); UsefulTestCase.edt(new Runnable() { @Override @@ -110,8 +110,8 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase { @Override protected void tearDown() throws Exception { - VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory()); super.tearDown(); + VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory()); } @SuppressWarnings("AssignmentToStaticFieldFromInstanceMethod")