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,15 @@
// "Add on demand static import for 'test.Bar'" "true"
package test;
import static test.Bar.*;
class Bar {
public static final void f() {}
}
public class Foo {
public static final void f(int i) {}
{
<caret>Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
}

View File

@@ -0,0 +1,36 @@
// "Add on demand static import for 'test.Bar'" "true"
package test;
import static test.Bar.*;
class Bar {
public static final void f() {
}
}
public class Foo {
{
f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
static class D {
public static final void f(int i) {
}
{
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
}
{
f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
{
f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
{
f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
}

View File

@@ -0,0 +1,14 @@
// "Add on demand static import for 'test.Bar'" "false"
package test;
import static test.Bar.*;
class Bar {
public static final void f() {}
}
public class Foo {
public static final void f(int i) {}
{
<caret>Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
}

View File

@@ -0,0 +1,13 @@
// "Add on demand static import for 'test.Bar'" "true"
package test;
class Bar {
public static final void f() {}
}
public class Foo {
public static final void f(int i) {}
{
<caret>Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
}

View File

@@ -0,0 +1,34 @@
// "Add on demand static import for 'test.Bar'" "true"
package test;
class Bar {
public static final void f() {
}
}
public class Foo {
{
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
static class D {
public static final void f(int i) {
}
{
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
}
{
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
{
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
{
<caret>Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
}