inplace members rename tests

(cherry picked from commit 9db66026eb65ef943da08f6dcf42b0f2a80fe03e)
This commit is contained in:
anna
2011-12-05 21:56:06 +01:00
parent d7d6fa9ad2
commit b56abcfae9
12 changed files with 191 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
public class Constructor {
public Constructor() {
}
public Constructor(int i) {
System.out.println(i);
}
void foo() {
final Constr<caret>uctor constructor = new Constructor();
System.out.println(constructor);
}
}

View File

@@ -0,0 +1,13 @@
public class Bar {
public Bar() {
}
public Bar(int i) {
System.out.println(i);
}
void foo() {
final Bar bar = new Bar();
System.out.println(bar);
}
}

View File

@@ -0,0 +1,12 @@
class Foo {
void foo(){}
void bar() {
foo();
}
}
class FooImpl extends Foo {
void f<caret>oo() {
super.foo();
}
}

View File

@@ -0,0 +1,12 @@
class Foo {
void foo(){}
void bar() {
foo();
}
}
class FooImpl extends Foo {
void foo() {
super.foo();
}
}

View File

@@ -0,0 +1,8 @@
public class Constructor {
public Constructor() {
}
void foo() {
final Constructor constructor = new Co<caret>nstructor();
System.out.println(constructor);
}
}

View File

@@ -0,0 +1,8 @@
public class Bar {
public Bar() {
}
void foo() {
final Bar bar = new Bar();
System.out.println(bar);
}
}

View File

@@ -0,0 +1,13 @@
public class Constructor {
public Constructor() {
}
public Constructor(int i) {
System.out.println(i);
}
void foo() {
final Constructor constructor = new Co<caret>nstructor();
System.out.println(constructor);
}
}

View File

@@ -0,0 +1,13 @@
public class Bar {
public Bar() {
}
public Bar(int i) {
System.out.println(i);
}
void foo() {
final Bar bar = new Bar();
System.out.println(bar);
}
}

View File

@@ -0,0 +1,12 @@
class Foo {
void foo(){}
void bar() {
foo();
}
}
class FooImpl extends Foo {
void f<caret>oo() {
super.foo();
}
}

View File

@@ -0,0 +1,12 @@
class Foo {
void xxx(){}
void bar() {
xxx();
}
}
class FooImpl extends Foo {
void xxx() {
super.xxx();
}
}