more java tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 10:48:17 +04:00
parent 735a9d17a8
commit 2718da9fc7
1139 changed files with 14287 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
// "Make 'a' implement 'java.lang.Runnable'" "true"
class a implements Runnable {
void f(Runnable r) {
f(this);
}
public void run() {
<caret><selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
}
}

View File

@@ -0,0 +1,9 @@
// "Make 'a' extend 'b'" "true"
<caret>class a extends b {
void f(b b, Runnable r) {
f(this, null);
}
}
class b {
}

View File

@@ -0,0 +1,10 @@
// "Make 'b' extend 'a'" "true"
class a {
void f(a a) {
b b = null;
f(b);
}
}
<caret>class b extends a {
}

View File

@@ -0,0 +1,14 @@
// "Make 'a' implement 'b'" "true"
class a implements b<String> {
void f(b<String> r) {
r.g(this);
}
public void g(b<String> t) {
<caret><selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
}
}
interface b<T> {
void g(b<T> t);
}

View File

@@ -0,0 +1,7 @@
// "Make 'a' implement 'java.lang.Runnable'" "true"
class a {
void f(Runnable r) {
f(<caret>this);
}
}

View File

@@ -0,0 +1,9 @@
// "Make 'a' extend 'b'" "true"
class a {
void f(b b, Runnable r) {
f(<caret>this, null);
}
}
class b {
}

View File

@@ -0,0 +1,9 @@
// "Make 'a' extend 'b'" "false"
class a extends Object {
void f(b b, Runnable r) {
f(<caret>this, null);
}
}
class b {
}

View File

@@ -0,0 +1,10 @@
// "Make 'b' extend 'a'" "true"
class a {
void f(a a) {
b b = null;
f(<caret>b);
}
}
class b {
}

View File

@@ -0,0 +1,10 @@
// "Make 'b' extend 'a'" "false"
class a {
void f(a a, b b) {
b b = null;
f(<caret>b, b);
}
}
interface b {
}

View File

@@ -0,0 +1,11 @@
// "Make 'a' implement 'b'" "true"
class a {
void f(b<String> r) {
r.g(<caret>this);
}
}
interface b<T> {
void g(b<T> t);
}