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 @@
// "Create Local Variable 'x'" "true"
class other {
public int method1() { return 1;}
public String field1;
}
class A {
public void foo() {
other x<caret>;
x.method1();
}
}

View File

@@ -0,0 +1,11 @@
// "Create Local Variable 'x'" "true"
class other {
public int method1() { return 1;}
public String field1;
}
class A {
public void foo() {
other x<caret>;
int i = x.field1;
}
}

View File

@@ -0,0 +1,7 @@
// "Create Local Variable 'a'" "true"
class C {
void foo() {
int a<caret> = 10;
a++;
}
}

View File

@@ -0,0 +1,9 @@
// "Create Local Variable 't'" "true"
class Test {
private void f() {
int t<caret>;
int i = t;
t = 0;
}
}

View File

@@ -0,0 +1,10 @@
// "Create Local Variable 'local'" "true"
class A {
public void foo() {
String local<caret>;
System.out.println(local);
{
local = "";
}
}
}

View File

@@ -0,0 +1,10 @@
// "Create Local Variable 'x'" "true"
class other {
public int method1() { return 1;}
public String field1;
}
class A {
public void foo() {
<caret>x.method1();
}
}

View File

@@ -0,0 +1,10 @@
// "Create Local Variable 'x'" "true"
class other {
public int method1() { return 1;}
public String field1;
}
class A {
public void foo() {
int i = <caret>x.field1;
}
}

View File

@@ -0,0 +1,7 @@
// "Create Local Variable 'a'" "true"
class C {
void foo() {
<caret>a = 10;
a++;
}
}

View File

@@ -0,0 +1,8 @@
// "Create Local Variable 't'" "true"
class Test {
private void f() {
int i = <caret>t;
t = 0;
}
}

View File

@@ -0,0 +1,9 @@
// "Create Local Variable 'local'" "true"
class A {
public void foo() {
System.out.println(local);
{
<caret>local = "";
}
}
}