Rewrite AbstractQuickFixTest based on light fixture test case
Don't reconfigure runtime before every test. For consistency, mark tests that require the runtime with directives instead of relying on test file names.
This commit is contained in:
idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed3Runtime.kt
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int): Int {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int): Int {
|
||||
|
||||
idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed4Runtime.kt
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int?): Int {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int?): Int {
|
||||
|
||||
idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed5Runtime.kt
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p2)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun(p2)"))
|
||||
fun oldFun(p1: Int, p2: Int): Boolean {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p2)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun(p2)"))
|
||||
fun oldFun(p1: Int, p2: Int): Boolean {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class C {
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class C {
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
// WITH_RUNTIME
|
||||
package ppp
|
||||
|
||||
fun bar(): Int = 0
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
// WITH_RUNTIME
|
||||
package ppp
|
||||
|
||||
fun bar(): Int = 0
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p, p)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun(p, p)"))
|
||||
fun oldFun(p: Int): Int {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p, p)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun(p, p)"))
|
||||
fun oldFun(p: Int): Int {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p, p)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
import java.util.*
|
||||
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p, p)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
import java.util.*
|
||||
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p, p)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun(p, p)"))
|
||||
fun oldFun(p: Int?): Int {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Replace with 'newFun(p, p)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Deprecated("", ReplaceWith("newFun(p, p)"))
|
||||
fun oldFun(p: Int?): Int {
|
||||
|
||||
Reference in New Issue
Block a user