Quick Fixes: Implement quickfix for missing library

This commit is contained in:
Alexey Sedunov
2015-10-02 19:57:50 +03:00
parent f59e56b7e9
commit 1a36c3e29a
10 changed files with 188 additions and 30 deletions
+14
View File
@@ -0,0 +1,14 @@
// "Add 'JUnit4' to classpath" "true"
// ERROR: Unresolved reference: Before
// ERROR: Unresolved reference: junit
// UNCONFIGURE_LIBRARY: JUnit4
package some
import org.<caret>junit.Before
open class KBase {
@Before
fun setUp() {
throw UnsupportedOperationException()
}
}
+14
View File
@@ -0,0 +1,14 @@
// "Add 'JUnit4' to classpath" "true"
// ERROR: Unresolved reference: Before
// ERROR: Unresolved reference: junit
// UNCONFIGURE_LIBRARY: JUnit4
package some
import org.junit.Before
open class KBase {
@Before
fun setUp() {
throw UnsupportedOperationException()
}
}
+12
View File
@@ -0,0 +1,12 @@
// "Add 'testng' to classpath" "true"
// ERROR: Unresolved reference: BeforeMethod
// ERROR: Unresolved reference: testng
// UNCONFIGURE_LIBRARY: testng
package some
abstract class KBase {
@<caret>BeforeMethod
fun setUp() {
throw UnsupportedOperationException()
}
}
+14
View File
@@ -0,0 +1,14 @@
// "Add 'testng' to classpath" "true"
// ERROR: Unresolved reference: BeforeMethod
// ERROR: Unresolved reference: testng
// UNCONFIGURE_LIBRARY: testng
package some
import org.testng.annotations.BeforeMethod
abstract class KBase {
@BeforeMethod
fun setUp() {
throw UnsupportedOperationException()
}
}