Added tests with class/function used in Java

This commit is contained in:
Evgeny Gerashchenko
2015-01-15 14:56:46 +03:00
parent 4b20435ec9
commit 4cede47c70
5 changed files with 18 additions and 1 deletions
@@ -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)