moving tests from codeInsight-tests to community

This commit is contained in:
Dmitry Jemerov
2015-02-12 12:35:07 +01:00
parent 9dee6e8ff3
commit c25243f74d
78 changed files with 1449 additions and 0 deletions
@@ -0,0 +1,3 @@
class X {
String usedToOpenInProjectView2 = "/java/lang<caret>";
}
@@ -0,0 +1,9 @@
import java.lang.String;
class X {
X(int i){}
X(String s){}
{
new <caret>X();
}
}
@@ -0,0 +1,5 @@
class X {
{
String[] arg = new Stri<caret>ng[1];
}
}
@@ -0,0 +1,11 @@
class SomeClass {
public static final Object OBJECT_OVERRIDDEN = new Object() {
public String toString() {
return "";
}
};
public String get() {
return OBJECT_OVERRIDDEN.to<caret>String();
}
}
@@ -0,0 +1,11 @@
class SomeClass {
public static final Object OBJECT_OVERRIDDEN = new Object() {
public String <caret>toString() {
return "";
}
};
public String get() {
return OBJECT_OVERRIDDEN.toString();
}
}
@@ -0,0 +1,8 @@
class Test{
{
while(true){
foo();
<caret>break;
}
}
}
@@ -0,0 +1,8 @@
class Test{
void foo() {
Label:
for ( ; ; ) {
<caret>break;
}
}
}
@@ -0,0 +1,8 @@
class Test{
void foo() {
Label:
for ( ; ; ) {
break;
}<caret>
}
}
@@ -0,0 +1,9 @@
class Test{
{
Label:
while(true){
foo();
break <caret>Label;
}
}
}
@@ -0,0 +1,9 @@
class Test{
{
<caret>Label:
while(true){
foo();
break Label;
}
}
}
@@ -0,0 +1,8 @@
class Test{
{
while(true){
foo();
break;
}<caret>
}
}
@@ -0,0 +1,8 @@
class Test{
{
while(true){
foo();
<caret>continue;
}
}
}
@@ -0,0 +1,9 @@
class Test{
{
Label:
while(true){
foo();
continue <caret>Label;
}
}
}
@@ -0,0 +1,9 @@
class Test{
{
<caret>Label:
while(true){
foo();
continue Label;
}
}
}
@@ -0,0 +1,8 @@
class Test{
{
<caret>while(true){
foo();
continue;
}
}
}