More tests for generating methods from different caret positions
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class <caret>Other {
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<Any>.equals(other)</selection>
|
||||
}
|
||||
override fun hashCode(): Int {
|
||||
return super<Any>.hashCode()
|
||||
}
|
||||
override fun toString(): String {
|
||||
return super<Any>.toString()
|
||||
}
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other {
|
||||
fun test() {
|
||||
val a = 1<caret>
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other {
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<Any>.equals(other)</selection>
|
||||
}
|
||||
override fun hashCode(): Int {
|
||||
return super<Any>.hashCode()
|
||||
}
|
||||
override fun toString(): String {
|
||||
return super<Any>.toString()
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other <caret>{
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<Any>.equals(other)</selection>
|
||||
}
|
||||
override fun hashCode(): Int {
|
||||
return super<Any>.hashCode()
|
||||
}
|
||||
override fun toString(): String {
|
||||
return super<Any>.toString()
|
||||
}
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -151,6 +151,18 @@ public final class OverrideImplementTest extends AbstractOverrideImplementTest {
|
||||
doImplementDirectoryTest();
|
||||
}
|
||||
|
||||
public void testOverrideFromFunctionPosition() {
|
||||
doMultiOverrideFileTest();
|
||||
}
|
||||
|
||||
public void testOverrideFromClassName() {
|
||||
doMultiOverrideFileTest();
|
||||
}
|
||||
|
||||
public void testOverrideFromLBrace() {
|
||||
doMultiOverrideFileTest();
|
||||
}
|
||||
|
||||
public void testCheckNotImportedTypesFromJava() {
|
||||
boolean oldValue = CodeInsightSettings.getInstance().OPTIMIZE_IMPORTS_ON_THE_FLY;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user