mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
testdata fixed
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
// "Add static import for 'test.Bar.Foo'" "true"
|
||||
// "Add import for 'test.Bar.Foo'" "true"
|
||||
package test;
|
||||
|
||||
import static test.Bar.Foo;
|
||||
import test.Bar.Foo;
|
||||
|
||||
class Bar {
|
||||
public static class Foo {}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
// "Add static import for 'test.Bar.Foo'" "true"
|
||||
// "Add import for 'test.Bar.Foo'" "true"
|
||||
package test;
|
||||
|
||||
import static test.Bar.Foo;
|
||||
import test.Bar.Foo;
|
||||
|
||||
class Bar {
|
||||
public static @interface Foo {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add static import for 'test.Bar.Foo'" "true"
|
||||
// "Add import for 'test.Bar.Foo'" "true"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add static import for 'test.Bar.Foo'" "true"
|
||||
// "Add import for 'test.Bar.Foo'" "true"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
import static foo.Clazz.Foo;
|
||||
import foo.Clazz.Foo;
|
||||
|
||||
import static foo.Clazz.Foo.Const_1;
|
||||
|
||||
class MyObject{
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
import foo.*;
|
||||
|
||||
import static foo.Class1.Inner1;
|
||||
import foo.Class1.Inner1;
|
||||
|
||||
class Class2 {
|
||||
public static void main(String[] args) {
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
import foo.*;
|
||||
|
||||
import static foo.Class1.Inner2;
|
||||
import foo.Class1.Inner2;
|
||||
|
||||
class Class2 {
|
||||
public static void main(String[] args) {
|
||||
|
||||
+3
-3
@@ -38,7 +38,7 @@ public class AddSingleStaticImportActionTest extends JavaCodeInsightFixtureTestC
|
||||
"}");
|
||||
myFixture.configureByFile(getTestName(false) + ".java");
|
||||
|
||||
final IntentionAction intentionAction = myFixture.findSingleIntention("Add static import for 'foo.Class1.Inner2'");
|
||||
final IntentionAction intentionAction = myFixture.findSingleIntention("Add import for 'foo.Class1.Inner2'");
|
||||
assertNotNull(intentionAction);
|
||||
myFixture.launchAction(intentionAction);
|
||||
myFixture.checkResultByFile(getTestName(false) + "_after.java");
|
||||
@@ -53,7 +53,7 @@ public class AddSingleStaticImportActionTest extends JavaCodeInsightFixtureTestC
|
||||
"}");
|
||||
myFixture.configureByFile(getTestName(false) + ".java");
|
||||
|
||||
final IntentionAction intentionAction = myFixture.findSingleIntention("Add static import for 'foo.Clazz.Foo'");
|
||||
final IntentionAction intentionAction = myFixture.findSingleIntention("Add import for 'foo.Clazz.Foo'");
|
||||
assertNotNull(intentionAction);
|
||||
myFixture.launchAction(intentionAction);
|
||||
myFixture.checkResultByFile(getTestName(false) + "_after.java");
|
||||
@@ -67,7 +67,7 @@ public class AddSingleStaticImportActionTest extends JavaCodeInsightFixtureTestC
|
||||
"}");
|
||||
myFixture.configureByFile(getTestName(false) + ".java");
|
||||
|
||||
final IntentionAction intentionAction = myFixture.findSingleIntention("Add static import for 'foo.Class1.Inner1'");
|
||||
final IntentionAction intentionAction = myFixture.findSingleIntention("Add import for 'foo.Class1.Inner1'");
|
||||
assertNotNull(intentionAction);
|
||||
myFixture.launchAction(intentionAction);
|
||||
myFixture.checkResultByFile(getTestName(false) + "_after.java");
|
||||
|
||||
Reference in New Issue
Block a user