diff options
Diffstat (limited to 'jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/StringToUpperWithoutLocaleInspectionTest.java')
-rw-r--r-- | jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/StringToUpperWithoutLocaleInspectionTest.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/StringToUpperWithoutLocaleInspectionTest.java b/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/StringToUpperWithoutLocaleInspectionTest.java new file mode 100644 index 00000000..99868639 --- /dev/null +++ b/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/StringToUpperWithoutLocaleInspectionTest.java @@ -0,0 +1,27 @@ +package com.intellij.codeInspection.tests.java; + +import com.intellij.codeInspection.tests.StringToUpperWithoutLocaleInspectionTestBase; +import com.intellij.jvm.analysis.JvmAnalysisTestsUtil; +import com.intellij.testFramework.TestDataPath; + +@TestDataPath("$CONTENT_ROOT/testData/codeInspection/toUpperWithoutLocale") +public class StringToUpperWithoutLocaleInspectionTest extends StringToUpperWithoutLocaleInspectionTestBase { + @Override + protected String getTestDataPath() { + return JvmAnalysisTestsUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH + "/codeInspection/toUpperWithoutLocale"; + } + + public void testSimpleCases() { + myFixture.testHighlighting("SimpleCases.java"); + //TODO test after quickfix once it's implemented + } + + public void testNonNlsCases() { + //TODO test #4 (about equals()) + //TODO test #5 (about @NonNls in the left side of assignment expression) + //TODO test #6 with assigning method return value to variable? If this is not super hard to support. + myFixture.testHighlighting("NonNlsCases.java"); + } + + //TODO test pkg/subPkg +} |