mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
more java tests moved to community
This commit is contained in:
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Make 'a' implement 'java.lang.Runnable'" "true"
|
||||
class a {
|
||||
void f(Runnable r) {
|
||||
f(<caret>this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Make 'a' extend 'b'" "true"
|
||||
class a {
|
||||
void f(b b, Runnable r) {
|
||||
f(<caret>this, null);
|
||||
}
|
||||
}
|
||||
class b {
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Make 'b' extend 'a'" "true"
|
||||
class a {
|
||||
void f(a a) {
|
||||
b b = null;
|
||||
f(<caret>b);
|
||||
}
|
||||
}
|
||||
class b {
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user