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:
Valentin Kipyatkov
2014-01-23 17:00:26 +04:00
parent 3028cec4cd
commit d01ff28212
75 changed files with 99 additions and 136 deletions
@@ -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,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,2 +1,2 @@
// "Make String open" "false"
// "class org.jetbrains.jet.plugin.quickfix.AddOpenModifierToClassDeclarationFix" "false"
class A<T : String<caret>> {}
@@ -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,4 +1,4 @@
// "Make JavaClass open" "false"
// "class org.jetbrains.jet.plugin.quickfix.AddOpenModifierToClassDeclarationFix" "false"
import testPackage.*
class foo<T : JavaClass>() {}