mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
[java-tests] Delete JAVA_10 project descriptor
GitOrigin-RevId: 25d94de269120449ac282a15dc6bdcd379dcb7b7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
403065b8c3
commit
1dc70e5402
@@ -7,7 +7,7 @@ import com.intellij.codeInspection.miscGenerics.IterableUsedAsVarargInspection;
|
||||
import com.intellij.testFramework.LightProjectDescriptor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import static com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase.JAVA_10;
|
||||
import static com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase.JAVA_11;
|
||||
|
||||
|
||||
public class IterableUsedAsVarargInspectionTest extends LightQuickFixParameterizedTestCase {
|
||||
@@ -19,7 +19,7 @@ public class IterableUsedAsVarargInspectionTest extends LightQuickFixParameteriz
|
||||
@NotNull
|
||||
@Override
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
return JAVA_10;
|
||||
return JAVA_11;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -15,6 +15,6 @@ public class RemoveRedundantLambdaParameterTypesFixTest extends LightQuickFixPar
|
||||
|
||||
@Override
|
||||
protected @NotNull LightProjectDescriptor getProjectDescriptor() {
|
||||
return LightJavaCodeInsightFixtureTestCase.JAVA_10;
|
||||
return LightJavaCodeInsightFixtureTestCase.JAVA_9;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.java.codeInsight.daemon
|
||||
|
||||
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
|
||||
|
||||
class LightJava10HighlightingTest : LightJavaCodeInsightFixtureTestCase() {
|
||||
override fun getProjectDescriptor() = JAVA_10
|
||||
|
||||
fun testRequiresJavaBase() {
|
||||
myFixture.configureByText("module-info.java", """
|
||||
module M {
|
||||
requires <error descr="Modifier 'static' not allowed here">static</error> <error descr="Modifier 'transitive' not allowed here">transitive</error> java.base;
|
||||
}""".trimIndent())
|
||||
myFixture.checkHighlighting()
|
||||
}
|
||||
}
|
||||
@@ -49,6 +49,14 @@ class LightJava11HighlightingTest : LightJavaCodeInsightFixtureTestCase() {
|
||||
Assert.assertTrue(JavaHighlightUtil.isJavaHashBangScript(file))
|
||||
}
|
||||
|
||||
fun testRequiresJavaBase() {
|
||||
myFixture.configureByText("module-info.java", """
|
||||
module M {
|
||||
requires <error descr="Modifier 'static' not allowed here">static</error> <error descr="Modifier 'transitive' not allowed here">transitive</error> java.base;
|
||||
}""".trimIndent())
|
||||
myFixture.checkHighlighting()
|
||||
}
|
||||
|
||||
private fun doTest() {
|
||||
myFixture.configureByFile(getTestName(false) + ".java")
|
||||
myFixture.checkHighlighting()
|
||||
|
||||
@@ -7,14 +7,14 @@ import com.intellij.codeInspection.ReplaceInefficientStreamCountInspection;
|
||||
import com.intellij.testFramework.LightProjectDescriptor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import static com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase.JAVA_10;
|
||||
import static com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase.JAVA_9;
|
||||
|
||||
public class ReplaceInefficientStreamCountInspection10Test extends LightQuickFixParameterizedTestCase {
|
||||
public class ReplaceInefficientStreamCountInspection9Test extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
return JAVA_10;
|
||||
return JAVA_9;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -24,6 +24,6 @@ public class ReplaceInefficientStreamCountInspection10Test extends LightQuickFix
|
||||
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
return "/inspection/inefficientStreamCount10";
|
||||
return "/inspection/inefficientStreamCount9";
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ public class ImplicitArrayToStringInspectionTest extends LightJavaInspectionTest
|
||||
@NotNull
|
||||
@Override
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
return JAVA_10;
|
||||
return JAVA_11;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
@@ -36,6 +36,6 @@ public class PrivateMemberAccessBetweenOuterAndInnerClassInspectionTest extends
|
||||
@NotNull
|
||||
@Override
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
return JAVA_10;
|
||||
return JAVA_9;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,6 @@ public class UnnecessaryExplicitNumericCastInspectionTest extends LightJavaInspe
|
||||
@NotNull
|
||||
@Override
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
return JAVA_10;
|
||||
return JAVA_11;
|
||||
}
|
||||
}
|
||||
@@ -70,7 +70,6 @@ public abstract class LightJavaCodeInsightFixtureTestCase extends UsefulTestCase
|
||||
public static final @NotNull LightProjectDescriptor JAVA_8_ANNOTATED = new ProjectDescriptor(LanguageLevel.JDK_1_8, true);
|
||||
public static final @NotNull LightProjectDescriptor JAVA_9 = new ProjectDescriptor(LanguageLevel.JDK_1_9);
|
||||
public static final @NotNull LightProjectDescriptor JAVA_9_ANNOTATED = new ProjectDescriptor(LanguageLevel.JDK_1_9, true);
|
||||
public static final @NotNull LightProjectDescriptor JAVA_10 = new ProjectDescriptor(LanguageLevel.JDK_10);
|
||||
public static final @NotNull LightProjectDescriptor JAVA_11 = new ProjectDescriptor(LanguageLevel.JDK_11);
|
||||
public static final @NotNull LightProjectDescriptor JAVA_11_ANNOTATED = new ProjectDescriptor(LanguageLevel.JDK_11, true);
|
||||
public static final @NotNull LightProjectDescriptor JAVA_12 = new ProjectDescriptor(LanguageLevel.JDK_12);
|
||||
|
||||
Reference in New Issue
Block a user