mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit integration tests: use java 8+ to ensure junit 5 compatibility
GitOrigin-RevId: 6cdb2ed47e9adb32625601ec362befaca258ba9a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
197d0af29d
commit
16b8c8e2d3
+15
@@ -5,8 +5,12 @@ import com.intellij.application.options.PathMacrosImpl;
|
||||
import com.intellij.openapi.application.PathMacros;
|
||||
import com.intellij.openapi.compiler.CompilerMessage;
|
||||
import com.intellij.openapi.compiler.CompilerMessageCategory;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.roots.ModuleRootModificationUtil;
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
import com.intellij.testFramework.CompilerTester;
|
||||
import com.intellij.testFramework.IdeaTestUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
@@ -37,6 +41,17 @@ public abstract class AbstractTestFrameworkCompilingIntegrationTest extends Abst
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected LanguageLevel getProjectLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_8;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Sdk getTestProjectJdk() {
|
||||
return IdeaTestUtil.getMockJdk18();
|
||||
}
|
||||
|
||||
protected String getDefaultMavenRepositoryPath() {
|
||||
final String root = System.getProperty("user.home", null);
|
||||
return (root != null ? new File(root, ".m2/repository") : new File(".m2/repository")).getAbsolutePath();
|
||||
|
||||
Reference in New Issue
Block a user