Unit Test Tooling: Implement "Create Test" action

#KT-6472 In Progress
This commit is contained in:
Alexey Sedunov
2015-10-02 20:38:14 +03:00
parent c697eef803
commit ad929a6577
14 changed files with 361 additions and 90 deletions
@@ -1,5 +1,6 @@
// "Create class 'A'" "false"
// ACTION: Create interface 'A'
// ACTION: Create Test
// ERROR: Unresolved reference: A
package p
@@ -1,5 +1,6 @@
// "class org.jetbrains.kotlin.idea.quickfix.AddOpenModifierToClassDeclarationFix" "false"
// ERROR: This type is final, so it cannot be inherited from
// ACTION: Create Test
import testPackage.*
class foo : <caret>JavaClass() {}
@@ -1,4 +1,5 @@
// "Cast expression 'Foo<Number>()' to 'Foo<Int>'" "false"
// ACTION: Create Test
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>Foo&lt;kotlin.Int&gt;</td></tr><tr><td>Found:</td><td>Foo&lt;kotlin.Number&gt;</td></tr></table></html>
class Foo<T>
@@ -1,5 +1,6 @@
// "Remove 'val' from parameter" "false"
// ACTION: Make internal
// ACTION: Make private
// ACTION: Create Test
class C(<caret>val x: String) {
}