diff --git a/src/test/java/opwvhk/intellij/avro_idl/actions/AvroIdlActionsTest.java b/src/test/java/opwvhk/intellij/avro_idl/actions/AvroIdlActionsTest.java index 013c9d2..8691f46 100644 --- a/src/test/java/opwvhk/intellij/avro_idl/actions/AvroIdlActionsTest.java +++ b/src/test/java/opwvhk/intellij/avro_idl/actions/AvroIdlActionsTest.java @@ -7,8 +7,6 @@ import com.intellij.testFramework.HeavyPlatformTestCase; import com.intellij.testFramework.MapDataContext; import com.intellij.testFramework.TestActionEvent; -import com.intellij.testFramework.fixtures.BasePlatformTestCase; -import com.intellij.testFramework.fixtures.TempDirTestFixture; import java.io.IOException; import java.nio.file.Files; @@ -20,10 +18,7 @@ import static org.assertj.core.api.Assertions.assertThat; -public class AvroIdlActionsTest extends - //HeavyPlatformTestCase { - BasePlatformTestCase { - +public class AvroIdlActionsTest extends HeavyPlatformTestCase { private Path inputDirectory; private Path outputDirectory; private Path resultDirectory; @@ -36,11 +31,7 @@ public void setUp() throws Exception { inputDirectory = testDirectory.resolve("input"); outputDirectory = testDirectory.resolve("output"); - TempDirTestFixture tempDirFixture = myFixture.getTempDirFixture(); - String tempDirPath = tempDirFixture.getTempDirPath(); - VirtualFile testFilesDirectory = tempDirFixture.copyAll(getTestDirectoryName(), getTestDirectoryName()); - VirtualFile resultVDirectory = tempDirFixture.findOrCreateDir(getTestDirectoryName() + "/results"); - //VirtualFile resultVDirectory = getTempDir().createVirtualDir(getTestDirectoryName()); + VirtualFile resultVDirectory = getTempDir().createVirtualDir(getTestDirectoryName()); ConversionActionBase.targetDirectory = resultVDirectory; resultDirectory = resultVDirectory.toNioPath(); @@ -139,10 +130,4 @@ private static T list(Path path, Function, T> function) throws return function.apply(stream); } } - - private static List list(Stream stream) throws IOException { - try (Stream s = stream) { - return s.toList(); - } - } }