Moving test data into java-specific folder

This commit is contained in:
Valentin Kipyatkov
2015-08-13 15:48:38 +03:00
parent ec7c55c9be
commit 9546e46ae0
18 changed files with 131 additions and 176 deletions
@@ -0,0 +1,6 @@
fun foo() {
javax.swing.SwingUtilities.invoke<caret>
}
// EXIST: { lookupString: "invokeLater", itemText: "invokeLater", tailText: "(Runnable!)", typeText: "Unit" }
// EXIST: { lookupString: "invokeLater", itemText: "invokeLater", tailText: " {...} ((() -> Unit)!)", typeText: "Unit" }
@@ -0,0 +1,8 @@
import java.io.File
fun File.foo(absolutePath: String?) {
<caret>
}
// EXIST: getAbsolutePath
// ABSENT: { itemText: "absolutePath", typeText: "String" }
@@ -0,0 +1,8 @@
fun foo(thread: Thread) {
thread.<caret>
}
// INVOCATION_COUNT: 2
// EXIST: { lookupString: "priority", itemText: "priority", tailText: " (from getPriority()/setPriority())", typeText: "Int" }
// EXIST: getPriority
// EXIST: setPriority
@@ -0,0 +1,8 @@
import java.io.File
fun foo(file: File) {
file.<caret>
}
// EXIST: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!" }
// ABSENT: getAbsolutePath
@@ -0,0 +1,14 @@
fun Thread.foo(urlConnection: java.net.URLConnection) {
with (urlConnection) {
<caret>
}
}
// EXIST: { lookupString: "priority", itemText: "priority", tailText: " (from getPriority()/setPriority())", typeText: "Int" }
// EXIST: { lookupString: "isDaemon", itemText: "isDaemon", tailText: " (from isDaemon()/setDaemon())", typeText: "Boolean" }
// EXIST: { lookupString: "url", itemText: "url", tailText: " (from getURL())", typeText: "URL!" }
// ABSENT: getPriority
// ABSENT: setPriority
// ABSENT: { itemText: "isDaemon", tailText: "()" }
// ABSENT: setDaemon
// ABSENT: getURL
@@ -0,0 +1,10 @@
fun foo(klass: Class<*>) {
klass.<caret>
}
// EXIST: simpleName
// ABSENT: getSimpleName
// EXIST: enclosingClass
// ABSENT: getEnclosingClass
// EXIST: annotations
// ABSENT: getAnnotations
@@ -0,0 +1,8 @@
import java.io.File
fun foo(file: File?) {
file?.<caret>
}
// EXIST: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!" }
// ABSENT: getAbsolutePath
@@ -0,0 +1,10 @@
import java.io.File
fun foo(o: Any) {
if (o is File) {
o.<caret>
}
}
// EXIST: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!" }
// ABSENT: getAbsolutePath
@@ -0,0 +1,10 @@
import java.io.File
fun Any.foo() {
if (this is File) {
<caret>
}
}
// EXIST: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!" }
// ABSENT: getAbsolutePath