Added tests with class/function used in Java
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class RandomJavaClass {
|
||||
void f(foo.UsedInJava p) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class UsedInJava
|
||||
@@ -0,0 +1,5 @@
|
||||
class RandomJavaClass {
|
||||
void g() {
|
||||
foo.FooPackage.usedInJava();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package foo
|
||||
|
||||
fun usedInJava() {
|
||||
}
|
||||
@@ -53,7 +53,7 @@ public abstract class AbstractJetInspectionTest: LightCodeInsightFixtureTestCase
|
||||
setTestDataPath("${JetTestUtils.getHomeDirectory()}/$srcDir")
|
||||
|
||||
val psiFiles = srcDir
|
||||
.listFiles { it.getName().endsWith(".kt") || it.getName().endsWith(".txt") || it.getName().endsWith(".xml") }!!
|
||||
.listFiles { it.getName().endsWith(".kt") || it.getName().endsWith(".txt") || it.getName().endsWith(".xml") || it.getName().endsWith(".java") }!!
|
||||
.map {
|
||||
file ->
|
||||
val text = FileUtil.loadFile(file, true)
|
||||
|
||||
Reference in New Issue
Block a user