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 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple {
public void m(char ch) {
}
public void test() {
m(<caret>'1');
}
}
@@ -0,0 +1,8 @@
// "Change "'" to '\'' (to char literal)" "true"
class Quotes {
void m1(char ch) {}
void test() {
m1(<caret>'\'');
}
}
@@ -0,0 +1,8 @@
// "Change "\'" to '\'' (to char literal)" "true"
class Quotes {
void m1(char ch) {}
void test() {
m1(<caret>'\'');
}
}
@@ -0,0 +1,8 @@
// "Change '"' to "\"" (to String literal)" "true"
class Quotes {
void m1(String s) {}
void test() {
m1(<caret>"\"");
}
}
@@ -0,0 +1,8 @@
// "Change "\\" to '\\' (to char literal)" "true"
class A {
void m(char x) {}
{
m(<caret>'\\');
}
}
@@ -0,0 +1,16 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple extends Ancestor {
public void m(int i) {
}
public void test() {
m(<caret>'1');
}
}
class Ancestor {
public void m(char ch) {
}
}
@@ -0,0 +1,10 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple {
Simple() {}
Simple(int i) {}
Simple(char ch) {}
public static void test() {
final Simple instance = new Simple(<caret>'1');
}
}
@@ -0,0 +1,5 @@
// "Change '1' to "1" (to String literal)" "true"
class Simple {
Simple() {this(<caret>"1");}
Simple(String s) {}
}
@@ -0,0 +1,9 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple {
Simple(int i) {}
Simple(char ch) {}
}
class Descendant extends Simple {
Descendant() {super(<caret>'1');}
}
@@ -0,0 +1,8 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple {
public void m1(final int i, final char ch) {}
public void test() {
m1("does not matter", <caret>'1');
}
}
@@ -0,0 +1,10 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple {
public void m(char ch) {
}
public void test() {
m(<caret>"1");
}
}
@@ -0,0 +1,8 @@
// "Change "'" to '\'' (to char literal)" "true"
class Quotes {
void m1(char ch) {}
void test() {
m1(<caret>"'");
}
}
@@ -0,0 +1,8 @@
// "Change "\'" to '\'' (to char literal)" "true"
class Quotes {
void m1(char ch) {}
void test() {
m1(<caret>"\'");
}
}
@@ -0,0 +1,8 @@
// "Change '"' to "\"" (to String literal)" "true"
class Quotes {
void m1(String s) {}
void test() {
m1(<caret>'"');
}
}
@@ -0,0 +1,8 @@
// "Change "\\" to '\\' (to char literal)" "true"
class A {
void m(char x) {}
{
m(<caret>"\\");
}
}
@@ -0,0 +1,10 @@
// "Change "1" to '1' (to char literal)" "false"
class Simple {
public void m(int i, char ch) {
}
public void test() {
m(<caret>"1");
}
}
@@ -0,0 +1,14 @@
// "Change "1" to '1' (to char literal)" "false"
class Simple {
public void m(char ch) {
}
public void m(String s) {
}
public void test() {
m(<caret>"1");
}
}
@@ -0,0 +1,16 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple extends Ancestor {
public void m(int i) {
}
public void test() {
m(<caret>"1");
}
}
class Ancestor {
public void m(char ch) {
}
}
@@ -0,0 +1,10 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple {
Simple() {}
Simple(int i) {}
Simple(char ch) {}
public static void test() {
final Simple instance = new Simple(<caret>"1");
}
}
@@ -0,0 +1,11 @@
// "Change "1" to '1' (to char literal)" "false"
class Simple {
Simple() {}
Simple(int i) {}
Simple(char ch) {}
Simple(String s) {}
public static void test() {
final Simple instance = new Simple(<caret>"1", );
}
}
@@ -0,0 +1,5 @@
// "Change '1' to "1" (to String literal)" "true"
class Simple {
Simple() {this(<caret>'1');}
Simple(String s) {}
}
@@ -0,0 +1,9 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple {
Simple(int i) {}
Simple(char ch) {}
}
class Descendant extends Simple {
Descendant() {super(<caret>"1");}
}
@@ -0,0 +1,8 @@
// "Change "1" to '1' (to char literal)" "true"
class Simple {
public void m1(final int i, final char ch) {}
public void test() {
m1("does not matter", <caret>"1");
}
}