Quickfix and intention tests refactoring: refer to intention action by class when checking that it's not available (instead of listing all available actions)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// "Make E open" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddOpenModifierToClassDeclarationFix" "false"
|
||||
// ERROR: This type is final, so it cannot be inherited from
|
||||
// ERROR: Cannot access '<init>': it is 'private' in 'E'
|
||||
enum class E {}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// "Make E open" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddOpenModifierToClassDeclarationFix" "false"
|
||||
enum class E {}
|
||||
class A<T : E<caret>> {}
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// "Make String open" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddOpenModifierToClassDeclarationFix" "false"
|
||||
// ERROR: This type is final, so it cannot be inherited from
|
||||
class A : String<caret>() {}
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// "Make String open" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddOpenModifierToClassDeclarationFix" "false"
|
||||
class A<T : String<caret>> {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Make JavaClass open" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddOpenModifierToClassDeclarationFix" "false"
|
||||
// ERROR: This type is final, so it cannot be inherited from
|
||||
import testPackage.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Make JavaClass open" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddOpenModifierToClassDeclarationFix" "false"
|
||||
import testPackage.*
|
||||
|
||||
class foo<T : JavaClass>() {}
|
||||
|
||||
Reference in New Issue
Block a user