move CompleteStatementTest to java-tests

This commit is contained in:
Dmitry Jemerov
2010-01-20 19:13:32 +03:00
parent 782c794a65
commit 457b469b9d
156 changed files with 1309 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
class Foo {
abstract void a();
{
a<caret>(;
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
abstract void a();
{
a();<caret>
}
}

View File

@@ -0,0 +1,7 @@
class Foo {
abstract void a();
{
a(<caret>)
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
abstract void a();
{
a();<caret>
}
}

View File

@@ -0,0 +1,6 @@
public class Foo {
{
for(int i = 0; i < 100; i++) {
}<caret>
}
}

View File

@@ -0,0 +1,7 @@
public class Foo {
{
for(int i = 0; i < 100; i++) {
}
<caret>
}
}

View File

@@ -0,0 +1,7 @@
public class Foo {
{
for(int i = 0; i < 100; i++) {
x = 3;
<caret> }
}
}

View File

@@ -0,0 +1,8 @@
public class Foo {
{
for(int i = 0; i < 100; i++) {
x = 3;
<caret>
}
}
}

View File

@@ -0,0 +1,6 @@
public class Foo {
{
<caret>for (int i = 0; i < 100; i++) {
}
}
}

View File

@@ -0,0 +1,7 @@
public class Foo {
{
<caret>
for (int i = 0; i < 100; i++) {
}
}
}

View File

@@ -0,0 +1,5 @@
public class Foo {
{
<caret> x = 3;
}
}

View File

@@ -0,0 +1,6 @@
public class Foo {
{
<caret>
x = 3;
}
}

View File

@@ -0,0 +1,6 @@
class Foo {
{
if (x) {<caret>
}
}

View File

@@ -0,0 +1,6 @@
public class Foo {
{
{<caret>
}
}
}

View File

@@ -0,0 +1,7 @@
public class Foo {
{
{
<caret>
}
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
if (x) {
<caret>
}
}
}

View File

@@ -0,0 +1,9 @@
public class test {
void f() {
int k1 = 1;
int k2 = 2;
int[] array = new int[]{k1, k2<caret>
System.out.print(k1);
}
}

View File

@@ -0,0 +1,9 @@
public class test {
void f() {
int k1 = 1;
int k2 = 2;
int[] array = new int[]{k1, k2};
System.out.print(k1);
}
}

View File

@@ -0,0 +1,5 @@
public class Test {
public int foo(int i) {
int ii = foo(0<caret>
}
}

View File

@@ -0,0 +1,5 @@
public class Test {
public int foo(int i) {
int ii = foo(0);<caret>
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
if (x) {
break<caret>
}
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
if (x) {
break;<caret>
}
}
}

View File

@@ -0,0 +1,6 @@
public class Foo {
{
foo<caret>(x);
}
}

View File

@@ -0,0 +1,7 @@
public class Foo {
{
foo(x);
<caret>
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
try {
} catch<caret>
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
try {
} catch (a<caret> b)
}
}

View File

@@ -0,0 +1,10 @@
class Foo {
{
try {
} catch (a b) {
<caret>
}
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
try {
} catch (<caret>
}
}

View File

@@ -0,0 +1,9 @@
class Foo {
{
try {
} catch (<caret>) {
}
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
try {
} catch (a<caret>
}
}

View File

@@ -0,0 +1,9 @@
class Foo {
{
try {
} catch (<caret>a) {
}
}
}

View File

@@ -0,0 +1,9 @@
class Foo {
{
try {
} catch (<caret>) {
}
}
}

View File

@@ -0,0 +1,9 @@
public class Test {
public void foo(int x) {
if (x > 0) {
System.out.println("true");
} else {
System.out.println("true");
}<caret>
}
}

View File

@@ -0,0 +1,10 @@
public class Test {
public void foo(int x) {
if (x > 0) {
System.out.println("true");
} else {
System.out.println("true");
}
<caret>
}
}

View File

@@ -0,0 +1,6 @@
class Foo {
{
if (a<caret>
}
}

View File

@@ -0,0 +1,6 @@
class foo {
{
if<caret>
}
}

View File

@@ -0,0 +1,8 @@
class foo {
{
if <caret>foo();
}
void foo() {}
}

View File

@@ -0,0 +1,10 @@
class foo {
{
if (<caret>) {
foo();
}
}
void foo() {}
}

View File

@@ -0,0 +1,7 @@
class foo {
{
if (<caret>) {
}
}
}

View File

@@ -0,0 +1,7 @@
class Foo
{
{
if (a<caret>
}
}

View File

@@ -0,0 +1,9 @@
class Foo
{
{
if (a<caret>)
{
}
}
}

View File

@@ -0,0 +1,10 @@
class Foo
{
{
if (a)
{
<caret>
}
}
}

View File

@@ -0,0 +1,10 @@
class Foo
{
{
if (a)
{
<caret>
}
}
}

View File

@@ -0,0 +1,8 @@
class foo {
{
if (<caret>foo();
}
void foo() {}
}

View File

@@ -0,0 +1,10 @@
class foo {
{
if (<caret>) {
foo();
}
}
void foo() {}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
if (a) {
<caret>
}
}
}

View File

@@ -0,0 +1,5 @@
public class Foo {
public void foo() {
String s = "abc<caret>def";
}
}

View File

@@ -0,0 +1,6 @@
public class Foo {
public void foo() {
String s = "abcdef";
<caret>
}
}

View File

@@ -0,0 +1,7 @@
class Test {
{
if(x) {
x();
} else if(<caret>)
}
}

View File

@@ -0,0 +1,8 @@
class Test {
{
if(x) {
x();
} else if (<caret>) {
}
}
}

View File

@@ -0,0 +1,7 @@
class Foo {
public void foo() {
<caret>
return;
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
public void foo() {
<caret>
return;
}
}

View File

@@ -0,0 +1,6 @@
public class Foo {
{
<caret>
}
}

View File

@@ -0,0 +1,7 @@
public class Foo {
{
<caret>
}
}

View File

@@ -0,0 +1,8 @@
class foo {
{
if (a) {
do<caret>
}
}
}

View File

@@ -0,0 +1,9 @@
class foo {
{
if (a) {
do {
} while (<caret>);
}
}
}

View File

@@ -0,0 +1,3 @@
public class Test {
String s<caret>
}

View File

@@ -0,0 +1,3 @@
public class Test {
String s =<caret>
}

View File

@@ -0,0 +1,3 @@
public class Test {
String s = <caret>;
}

View File

@@ -0,0 +1,3 @@
public class Test {
String s;<caret>
}

View File

@@ -0,0 +1,6 @@
public class Foo {
public void foo() {
foo(<caret>
// some line comment
}
}

View File

@@ -0,0 +1,6 @@
public class Foo {
public void foo() {
foo();<caret>
// some line comment
}
}

View File

@@ -0,0 +1,7 @@
class Foo {
{
for (int<caret> i = 0; i < 100; i++) {
}
}
}

View File

@@ -0,0 +1,6 @@
class Foo {
{
for (int<caret> i = 0; i < 100; i++)
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
for (int i = 0; i < 100; i++) {
<caret>
}
}
}

View File

@@ -0,0 +1,6 @@
class Foo {
{
List list;
for (String s:list<caret>)
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
List list;
for (String s : list) {
<caret>
}
}
}

View File

@@ -0,0 +1,6 @@
class foo {
{
for (int i = 0; i < 5; s.toString(<caret>
}
}

View File

@@ -0,0 +1,8 @@
class foo {
{
for (int i = 0; i < 5; s.toString()) {
<caret>
}
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
for (int i = 0; i < 100; i++) {
<caret>
}
}
}

View File

@@ -0,0 +1,9 @@
public class Foo {
{
int a;
a = 1;
if (a == 1<caret>)
a = 2;
}
}

View File

@@ -0,0 +1,11 @@
public class Foo {
{
int a;
a = 1;
if (a == 1) {
<caret>
}
a = 2;
}
}

View File

@@ -0,0 +1,6 @@
public class Junk {
public static void main(String[] args) {
int i <caret>= 1 // comment
}
}

View File

@@ -0,0 +1,6 @@
public class Junk {
public static void main(String[] args) {
int i = 1; // comment<caret>
}
}

View File

@@ -0,0 +1,6 @@
import static java.ut<caret>il.*
public class Junk {
public static void main(String[] args) {
}
}

View File

@@ -0,0 +1,6 @@
import static java.util.*;<caret>
public class Junk {
public static void main(String[] args) {
}
}

View File

@@ -0,0 +1,6 @@
class Foo {
public static void foo(int x<caret>) {
public static void bar(int x, int y) {
System.out.println();
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
public static void foo(int x) {
<caret>
}
public static void bar(int x, int y) {
System.out.println();
}
}

View File

@@ -0,0 +1,5 @@
class T
{
public static void main(String[] args)<caret>
}

View File

@@ -0,0 +1,8 @@
class T
{
public static void main(String[] args)
{
<caret>
}
}

View File

@@ -0,0 +1,3 @@
public class Foo {
public void foo() throws Exception <caret>
}

View File

@@ -0,0 +1,5 @@
public class Foo {
public void foo() throws Exception {
<caret>
}
}

View File

@@ -0,0 +1,8 @@
class T {
void test(Object a) {
if (true) <caret>
if (a != null)
System.out.println("a = " + a.toString());
}
}

View File

@@ -0,0 +1,10 @@
class T {
void test(Object a) {
if (true) {
<caret>
}
if (a != null)
System.out.println("a = " + a.toString());
}
}

View File

@@ -0,0 +1,6 @@
public class Junk {
public static void main(String[] args) {
int[] arr = new int[]{1,2,3}<caret>
}
}

View File

@@ -0,0 +1,6 @@
public class Junk {
public static void main(String[] args) {
int[] arr = new int[]{1, 2, 3};<caret>
}
}

View File

@@ -0,0 +1,6 @@
class Foo {
{
if (true) <caret>
System.out.println();
}
}

View File

@@ -0,0 +1,8 @@
class Foo {
{
if (true) {
<caret>
}
System.out.println();
}
}

View File

@@ -0,0 +1,7 @@
public class Foo {
{
if<caret> (x)
{
}
}
}

View File

@@ -0,0 +1,7 @@
public class Foo {
{
if (x) {
<caret>
}
}
}

View File

@@ -0,0 +1,6 @@
public class Test {
/**<caret>
public void foo() {
}
}

View File

@@ -0,0 +1,8 @@
public class Test {
/**
* abcd<caret>efgh
*/
public void foo() {
}
}

View File

@@ -0,0 +1,9 @@
public class Test {
/**
* abcdefgh
* <caret>
*/
public void foo() {
}
}

View File

@@ -0,0 +1,6 @@
public class Test {
public void foo() {
// Some <caret> comment
}
}

View File

@@ -0,0 +1,7 @@
public class Test {
public void foo() {
// Some comment
// <caret>
}
}

View File

@@ -0,0 +1,7 @@
public class Test {
public void foo() {
/*<caret>
System.out.println("foo");
}
}

View File

@@ -0,0 +1,9 @@
public class Test {
public void foo() {
/*
<caret>
*/
System.out.println("foo");
}
}

View File

@@ -0,0 +1,8 @@
public class Test {
/**
* <caret>
*/
public void foo() {
}
}

View File

@@ -0,0 +1,6 @@
public class Test {
{
x = 2;
<caret> foo();
}
}

View File

@@ -0,0 +1,7 @@
public class Test {
{
x = 2;
<caret>
foo();
}
}

Some files were not shown because too many files have changed in this diff Show More