Change testData for IntentionsTestGenerated to avoid using javax and sql packages

- Those packages are missing in the mockJdk 1.8 in intellij repository,
and it leads to those tests failing in kotlin-ide repository
This commit is contained in:
Roman Golyshev
2020-06-04 18:12:02 +03:00
committed by Roman Golyshev
parent 22b558110d
commit 7d662bf5d1
36 changed files with 153 additions and 170 deletions
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
import javax.swing.SwingConstants.<caret>CENTER
import java.util.regex.Pattern.<caret>CASE_INSENSITIVE
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
import javax.swing.<caret>SwingConstants.CENTER
import java.util.regex.<caret>Pattern.CASE_INSENSITIVE
+3 -4
View File
@@ -1,10 +1,9 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
// ERROR: Unresolved reference: xxx
// ERROR: Unresolved reference: unresolved
import javax.swing.SwingUtilities
import java.util.regex.Pattern
fun foo() {
SwingUtilities.<caret>xxx {
}
Pattern.<caret>unresolved()
}
+2 -3
View File
@@ -1,9 +1,8 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
import javax.swing.SwingUtilities
import java.util.regex.Pattern
fun foo() {
<caret>SwingUtilities.invokeLater {
}
<caret>Pattern.CASE_INSENSITIVE
}
+4 -4
View File
@@ -1,10 +1,10 @@
// INTENTION_TEXT: "Add import for 'javax.swing.SwingConstants.CENTER'"
// INTENTION_TEXT: "Add import for 'java.util.regex.Pattern.CASE_INSENSITIVE'"
// WITH_RUNTIME
import javax.swing.SwingConstants
import java.util.regex.Pattern
fun foo() {
val v = SwingConstants.CENTER
val v = Pattern.CASE_INSENSITIVE
SwingConstants.<caret>CENTER
Pattern.<caret>CASE_INSENSITIVE
}
@@ -1,11 +1,11 @@
// INTENTION_TEXT: "Add import for 'javax.swing.SwingConstants.CENTER'"
// INTENTION_TEXT: "Add import for 'java.util.regex.Pattern.CASE_INSENSITIVE'"
// WITH_RUNTIME
import javax.swing.SwingConstants
import javax.swing.SwingConstants.CENTER
import java.util.regex.Pattern
import java.util.regex.Pattern.CASE_INSENSITIVE
fun foo() {
val v = CENTER
val v = CASE_INSENSITIVE
<caret>CENTER
<caret>CASE_INSENSITIVE
}
+8 -11
View File
@@ -1,26 +1,23 @@
// INTENTION_TEXT: "Add import for 'javax.swing.SwingUtilities.invokeLater'"
// INTENTION_TEXT: "Add import for 'java.util.regex.Pattern.matches'"
// WITH_RUNTIME
// ERROR: Unresolved reference: SomethingElse
// ERROR: Unresolved reference: somethingElse
// SKIP_ERRORS_AFTER
import javax.swing.SwingUtilities
import java.util.regex.Pattern
fun foo() {
SwingUtilities.<caret>invokeLater {}
Pattern.<caret>matches("", "")
}
fun bar() {
javax.swing.SwingUtilities.invokeLater {
}
Pattern.matches("", "")
javax.swing.SwingUtilities.invokeLater(Runnable {
SwingUtilities.invokeLater { }
})
java.util.regex.Pattern.matches("", "")
SwingUtilities.invokeAndWait { }
Pattern.compile("")
SomethingElse.invokeLater()
SomethingElse.matches("", "")
somethingElse.SwingUtilities.invokeLater()
somethingElse.Pattern.matches("", "")
}
@@ -1,27 +1,24 @@
// INTENTION_TEXT: "Add import for 'javax.swing.SwingUtilities.invokeLater'"
// INTENTION_TEXT: "Add import for 'java.util.regex.Pattern.matches'"
// WITH_RUNTIME
// ERROR: Unresolved reference: SomethingElse
// ERROR: Unresolved reference: somethingElse
// SKIP_ERRORS_AFTER
import javax.swing.SwingUtilities
import javax.swing.SwingUtilities.invokeLater
import java.util.regex.Pattern
import java.util.regex.Pattern.matches
fun foo() {
invokeLater {}
matches("", "")
}
fun bar() {
invokeLater {
}
matches("", "")
invokeLater(Runnable {
invokeLater { }
})
matches("", "")
SwingUtilities.invokeAndWait { }
Pattern.compile("")
SomethingElse.invokeLater()
SomethingElse.matches("", "")
somethingElse.SwingUtilities.invokeLater()
somethingElse.Pattern.matches("", "")
}