mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove some common-prefix-based assertions in tests
This commit is contained in:
-8
@@ -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 {
|
||||
}
|
||||
-18
@@ -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>
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -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");
|
||||
}
|
||||
|
||||
+1
-5
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user