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,9 @@
// "Surround with array initialization" "true"
class A {
void bar(String[] args){
}
void foo(String s){
bar(new String[]{s});
}
}

View File

@@ -0,0 +1,9 @@
// "Surround with array initialization" "true"
class A {
void foo(){
sort(new String[]{"String"}, "String");
}
<T extends String, Q> void sort(T[] a, Q q){}
}

View File

@@ -0,0 +1,9 @@
// "Surround with array initialization" "true"
class A {
void bar(int i, String[] args){
}
void foo(String s){
bar(1, new String[]{s});
}
}

View File

@@ -0,0 +1,11 @@
// "Surround with array initialization" "true"
class A {
void bar(int i, String[] args){
}
void bar(int i, int j){}
void foo(String s){
bar(1, new String[]{s});
}
}

View File

@@ -0,0 +1,8 @@
// "Surround with array initialization" "true"
class A {
A(String[] s){}
void foo(String s){
new A(new String[]{s});
}
}

View File

@@ -0,0 +1,7 @@
// "Surround with array initialization" "true"
class A {
String[] foo(){
return new String[]{""};
}
}

View File

@@ -0,0 +1,12 @@
// "Surround with array initialization" "true"
import java.util.*;
class A {
void foo(){
Arrays.sort(new String[]{"Str"}, new Comparator<String>(){
public int compare(String o1, String o2) {
return 0;
}
});
}
}

View File

@@ -0,0 +1,9 @@
// "Surround with array initialization" "true"
class A {
void bar(String[] args){
}
void foo(String s){
bar(<caret>s);
}
}

View File

@@ -0,0 +1,9 @@
// "Surround with array initialization" "true"
class A {
void foo(){
sort(<caret>"String", "String");
}
<T extends String, Q> void sort(T[] a, Q q){}
}

View File

@@ -0,0 +1,9 @@
// "Surround with array initialization" "false"
class A {
void bar(int arg){
}
void foo(String s){
bar(<caret>s);
}
}

View File

@@ -0,0 +1,9 @@
// "Surround with array initialization" "true"
class A {
void bar(int i, String[] args){
}
void foo(String s){
bar(1, <caret>s);
}
}

View File

@@ -0,0 +1,9 @@
// "Surround with array initialization" "false"
class A {
void bar(int i, String[] args){
}
void foo(String s){
bar(<caret>1, s);
}
}

View File

@@ -0,0 +1,11 @@
// "Surround with array initialization" "true"
class A {
void bar(int i, String[] args){
}
void bar(int i, int j){}
void foo(String s){
bar(1, <caret>s);
}
}

View File

@@ -0,0 +1,8 @@
// "Surround with array initialization" "true"
class A {
A(String[] s){}
void foo(String s){
new A(<caret>s);
}
}

View File

@@ -0,0 +1,7 @@
// "Surround with array initialization" "true"
class A {
String[] foo(){
return <caret>"";
}
}

View File

@@ -0,0 +1,12 @@
// "Surround with array initialization" "true"
import java.util.*;
class A {
void foo(){
Arrays.sort(<caret>"Str", new Comparator<String>(){
public int compare(String o1, String o2) {
return 0;
}
});
}
}

View File

@@ -0,0 +1,9 @@
// "Surround with array initialization" "false"
class A {
void foo(){
sort(<caret>"String", "String");
}
<T extends Integer, Q> void sort(T[] a, Q q){}
}