[Test] Remove dependencies on IDEA classes from test modules

Some of IDEA services (like in `com.intellij/execution`) was copied,
  because they are used in tests but jars with them compiled with
  jdk 11 and we run our tests on jdk 8, so their bytecode can not
  be read
This commit is contained in:
Dmitriy Novozhilov
2021-07-02 17:34:14 +03:00
parent 11dfbd41ac
commit 11faf04a4c
25 changed files with 1660 additions and 672 deletions
@@ -39,7 +39,6 @@ import org.jetbrains.kotlin.utils.KotlinPaths;
import org.jetbrains.kotlin.utils.PathUtil;
import java.io.File;
import java.io.IOException;
import java.util.regex.Pattern;
@WithMutedInDatabaseRunTest
@@ -97,7 +96,7 @@ public abstract class KotlinIntegrationTestBase extends TestCaseWithTmpdir {
return content;
}
private void check(String testDataDir, String baseName, String content) throws IOException {
private void check(String testDataDir, String baseName, String content) {
File expectedFile = new File(testDataDir, baseName + ".expected");
String normalizedContent = normalizeOutput(new File(testDataDir), content);
@@ -162,7 +161,7 @@ public abstract class KotlinIntegrationTestBase extends TestCaseWithTmpdir {
}
@Override
public void onTextAvailable(ProcessEvent event, Key outputType) {
public void onTextAvailable(@NotNull ProcessEvent event, @NotNull Key outputType) {
if (outputType == ProcessOutputTypes.STDERR) {
err.append(event.getText());
}
@@ -175,6 +174,6 @@ public abstract class KotlinIntegrationTestBase extends TestCaseWithTmpdir {
}
@Override
public void processTerminated(ProcessEvent event) {}
public void processTerminated(@NotNull ProcessEvent event) {}
}
}