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,13 @@
// "Cast parameter to 'int'" "true"
class a {
private void test() {}
private void test(int i) {}
private void test(String s) {}
private void test(Object o) {}
private void test(char c,char f) {}
void f() {
test(<caret>(int) 2.2);
}
}

View File

@@ -0,0 +1,13 @@
// "Cast 1st parameter to 'char'" "true"
class a {
private void test() {}
private void test(int i) {}
private void test(String s) {}
private void test(Object o) {}
private void test(char c,char f) {}
void f() {
test(<caret>(char) 2.2, 'd');
}
}

View File

@@ -0,0 +1,13 @@
// "Cast 2nd parameter to 'char'" "true"
class a {
private void test() {}
private void test(int i) {}
private void test(String s) {}
private void test(Object o) {}
private void test(char c,char f) {}
void f() {
test(<caret>'d', (char) 0);
}
}

View File

@@ -0,0 +1,14 @@
// "Cast 1st parameter to 'double'" "true"
class a {
void test() {}
void test(int i) {}
void test(String s) {}
void test(Object o) {}
void test(int i,double d) {}
void test(double d,int i) {}
void f() {
test(<caret>(double) 0, 0);
}
}

View File

@@ -0,0 +1,14 @@
// "Cast 2nd parameter to 'double'" "true"
class a {
void test() {}
void test(int i) {}
void test(String s) {}
void test(Object o) {}
void test(int i,double d) {}
void test(double d,int i) {}
void f() {
test(<caret>0, (double) 0);
}
}

View File

@@ -0,0 +1,14 @@
// "Cast parameter to 'a'" "true"
class a {
void test() {}
void test(int i) {}
void test(String s) {}
void test(a o) {}
void test(int i,double d) {}
void test(double d,int i) {}
void f(Runnable r) {
test(<caret>(a) r);
}
}

View File

@@ -0,0 +1,10 @@
// "Cast 2nd parameter to 'java.lang.Throwable'" "true"
class a {
void f(Throwable a, Throwable b) {}
void g() {
Exception e=null;
Object o = null;
f(<caret>e, (Throwable) o);
}
}

View File

@@ -0,0 +1,13 @@
// "Cast parameter to 'int'" "true"
class a {
private void test() {}
private void test(int i) {}
private void test(String s) {}
private void test(Object o) {}
private void test(char c,char f) {}
void f() {
test(<caret>2.2);
}
}

View File

@@ -0,0 +1,13 @@
// "Cast 1st parameter to 'char'" "true"
class a {
private void test() {}
private void test(int i) {}
private void test(String s) {}
private void test(Object o) {}
private void test(char c,char f) {}
void f() {
test(<caret>2.2, 'd');
}
}

View File

@@ -0,0 +1,13 @@
// "Cast 2nd parameter to 'char'" "true"
class a {
private void test() {}
private void test(int i) {}
private void test(String s) {}
private void test(Object o) {}
private void test(char c,char f) {}
void f() {
test(<caret>'d', 0);
}
}

View File

@@ -0,0 +1,14 @@
// "Cast 1st parameter to 'char'" "false"
class a {
private void test() {}
private void test(int i) {}
private void test(String s) {}
private void test(Object o) {}
private void test(char c,char f) {}
private void test(int c, char f) {}
void f() {
test(<caret>0, 0);
}
}

View File

@@ -0,0 +1,14 @@
// "Cast 1st parameter to 'double'" "true"
class a {
void test() {}
void test(int i) {}
void test(String s) {}
void test(Object o) {}
void test(int i,double d) {}
void test(double d,int i) {}
void f() {
test(<caret>0, 0);
}
}

View File

@@ -0,0 +1,14 @@
// "Cast 2nd parameter to 'double'" "true"
class a {
void test() {}
void test(int i) {}
void test(String s) {}
void test(Object o) {}
void test(int i,double d) {}
void test(double d,int i) {}
void f() {
test(<caret>0, 0);
}
}

View File

@@ -0,0 +1,14 @@
// "Cast parameter to 'a'" "true"
class a {
void test() {}
void test(int i) {}
void test(String s) {}
void test(a o) {}
void test(int i,double d) {}
void test(double d,int i) {}
void f(Runnable r) {
test(<caret>r);
}
}

View File

@@ -0,0 +1,10 @@
// "Cast 2nd parameter to 'java.lang.Throwable'" "true"
class a {
void f(Throwable a, Throwable b) {}
void g() {
Exception e=null;
Object o = null;
f(<caret>e,o);
}
}

View File

@@ -0,0 +1,10 @@
// "Cast 1st parameter to 'java.lang.Throwable'" "false"
class a {
void f(Throwable a, Throwable b) {}
void g() {
Exception e=null;
Object o = null;
f(<caret>e,o);
}
}