summaryrefslogtreecommitdiff
path: root/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/UastCallMatcherTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/UastCallMatcherTest.java')
-rw-r--r--jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/UastCallMatcherTest.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/UastCallMatcherTest.java b/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/UastCallMatcherTest.java
new file mode 100644
index 00000000..ca6fa47f
--- /dev/null
+++ b/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/UastCallMatcherTest.java
@@ -0,0 +1,30 @@
+package com.intellij.codeInspection.tests.java;
+
+import com.intellij.codeInspection.tests.UastCallMatcherTestBase;
+import com.intellij.jvm.analysis.JvmAnalysisTestsUtil;
+import com.intellij.pom.java.LanguageLevel;
+import com.intellij.testFramework.TestDataPath;
+import com.intellij.testFramework.builders.JavaModuleFixtureBuilder;
+
+@TestDataPath("$CONTENT_ROOT/testData/codeInspection/uastCallMatcher")
+public class UastCallMatcherTest extends UastCallMatcherTestBase {
+ @Override
+ protected String getTestDataPath() {
+ return JvmAnalysisTestsUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH + "/codeInspection/uastCallMatcher";
+ }
+
+ @Override
+ protected void tuneFixture(JavaModuleFixtureBuilder moduleBuilder) {
+ super.tuneFixture(moduleBuilder);
+ moduleBuilder.setLanguageLevel(LanguageLevel.JDK_1_8);
+ }
+
+
+ public void testCallExpressions() {
+ doTestCallExpressions("MyClass.java");
+ }
+
+ public void testCallableReferences() {
+ doTestCallableReferences("MethodReferences.java");
+ }
+}