more java tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 12:46:40 +04:00
parent 735a9d17a8
commit 2718da9fc7
1139 changed files with 14287 additions and 0 deletions
@@ -0,0 +1,10 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
if (this instanceof Runnable) {
Runnable runnable = (Runnable) this;
<caret>
}
}
}
@@ -0,0 +1,11 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
if (!(this instanceof Runnable)) {
return;
}
Runnable runnable = (Runnable) this;
<caret>
}
}
@@ -0,0 +1,11 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
while (!(this instanceof Runnable)) {
//return;
}
Runnable runnable = (Runnable) this;
<caret>
}
}
@@ -0,0 +1,9 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
while (this instanceof Runnable) {
Runnable runnable = (Runnable) this;
<caret>
}
}
}
@@ -0,0 +1,9 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
if (this instanceof Runnable) {
Runnable runnable = (Runnable) this;
<caret>
}
}
}
@@ -0,0 +1,11 @@
// "Insert '(String)s' declaration" "true"
class C {
void f() {
String s = "";
if (s instanceof String) {
String s1 = (String) s;
<caret>
}
}
}
@@ -0,0 +1,10 @@
// "Insert '(String)o' declaration" "true"
class C {
void f(Object o) {
if (o instanceof String) {
String s = (String) o;
<caret>
o = "";
}
}
}
@@ -0,0 +1,7 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
if (this <caret>instanceof Runnable)
}
}
@@ -0,0 +1,9 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
if (!(this instanceof <caret>Runnable)) {
return;
}
}
}
@@ -0,0 +1,9 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
while (!(<caret>this instanceof Runnable)) {
//return;
}
}
}
@@ -0,0 +1,6 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
while (<caret>this instanceof Runnable
}
}
@@ -0,0 +1,7 @@
// "Insert '(Runnable)this' declaration" "true"
class C {
void f() {
if (this instanceof Runnable) { <caret>
}
}
}
@@ -0,0 +1,8 @@
// "Insert '(Runnable)this' declaration" "false"
class C {
void f() {
if (this instanceof Runnable<caret>) {
Object o = (Runnable)this;
}
}
}
@@ -0,0 +1,9 @@
// "Insert '(String)s' declaration" "true"
class C {
void f() {
String s = "";
if (s instanceof String) {
<caret>
}
}
}
@@ -0,0 +1,7 @@
// "Insert '(String)o' declaration" "true"
class C {
void f(Object o) {
if (o instanceof String<caret>)
o = "";
}
}