remove some common-prefix-based assertions in tests

This commit is contained in:
peter
2012-11-29 13:18:33 +01:00
parent 700867d76b
commit 73ffd878be
9 changed files with 1 additions and 53 deletions
@@ -1,8 +0,0 @@
class LifeUniverseEverythingEntity {}
class LifeUniverseEverythingManager {}
class FooFooFooFooFoo {
{
LifeUniverseEverything<caret>
}
}
@@ -1,5 +0,0 @@
import java.lang.annotation.Target;
@Target(value={ElementType.<caret>})
@interface Annotation {
}
@@ -1,5 +0,0 @@
import java.lang.annotation.Retention;
@Retention(RetentionPolicy.<caret>)
@interface Annotation {
}
@@ -1,5 +0,0 @@
import java.lang.annotation.Retention;
@Retention(value=RetentionPolicy.<caret>)
@interface Annotation {
}
@@ -1,5 +0,0 @@
import java.lang.annotation.Target;
@Target(ElementType.<caret>)
public @interface Test {
}
@@ -1,18 +0,0 @@
class MyEnum {
public static final MyEnum Foo;
public static final MyEnum Bar;
}
class Bar {
MyEnum getEnum();
}
class Foo {
Bar my;
{
MyEnum cl = MyEnum.<caret>
}
}
@@ -118,7 +118,6 @@ public class ClassNameCompletionTest extends LightFixtureCompletionTestCase {
String path = "/java/";
configureByFile(path + getTestName(false) + ".java");
complete();
checkResultByFile(path + getTestName(false) + "_after.java");
assertEquals(2, myItems.length);
}
@@ -122,7 +122,6 @@ public class SecondSmartTypeCompletionTest extends LightFixtureCompletionTestCas
myFixture.configureByFile(getTestName(false) + ".java");
myFixture.complete(CompletionType.SMART);
assertStringItems("MyEnum.Bar", "MyEnum.Foo");
checkResult();
myFixture.complete(CompletionType.SMART);
assertStringItems("my.getEnum", "MyEnum.Bar", "MyEnum.Foo");
}
@@ -839,7 +839,6 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
public void testAnnotation() throws Exception {
configureByTestName();
checkResultByTestName();
assertStringItems("ElementType.ANNOTATION_TYPE", "ElementType.CONSTRUCTOR",
"ElementType.FIELD", "ElementType.LOCAL_VARIABLE",
"ElementType.METHOD", "ElementType.PACKAGE", "ElementType.PARAMETER",
@@ -848,12 +847,10 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
public void testAnnotation2() throws Exception {
configureByTestName();
checkResultByTestName();
assertStringItems("RetentionPolicy.CLASS", "RetentionPolicy.RUNTIME", "RetentionPolicy.SOURCE");
}
public void testAnnotation2_2() throws Exception {
configureByTestName();
checkResultByTestName();
assertSameElements(myFixture.getLookupElementStrings(), "RetentionPolicy.CLASS", "RetentionPolicy.SOURCE", "RetentionPolicy.RUNTIME");
}
@@ -881,8 +878,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
public void testAnnotation6() throws Exception {
configureByTestName();
checkResultByTestName();
assertStringItems("ElementType.ANNOTATION_TYPE", "ElementType.CONSTRUCTOR",
"ElementType.FIELD", "ElementType.LOCAL_VARIABLE",
"ElementType.METHOD", "ElementType.PACKAGE", "ElementType.PARAMETER",