This commit is contained in:
Maxim Medvedev
2011-03-08 11:29:13 +03:00
parent 74c59d6858
commit 4409f2e56a
16 changed files with 17 additions and 17 deletions
@@ -123,7 +123,7 @@ class Foo {
myFixture.checkResult """import static Foo.abcmethod1
def foo() {
abcmethod1<caret>
abcmethod1(<caret>)
}"""
}
@@ -140,7 +140,7 @@ class Foo {
myFixture.checkResult """import foo.Foo
def foo() {
Foo.abcmethod<caret>
Foo.abcmethod(<caret>)
}"""
}
@@ -487,7 +487,7 @@ form<caret>"""
myFixture.completeBasic()
myFixture.checkResult """import static java.lang.String.format
format<caret>"""
format(<caret>)"""
}
public void testImportAsterisk() {
@@ -1,4 +1,4 @@
def foo() {
List<String> list=['a', 'b']
list[0].substring<caret>
list[0].substring(<caret>)
}
@@ -1,4 +1,4 @@
def foo() {
map=[1:'a', 3:'b', 2:'c']
map[2].substring<caret>
map[2].substring(<caret>)
}
@@ -1,4 +1,4 @@
list=['a', 'b']
list.each{
it.substring<caret>
it.substring(<caret>)
}
@@ -1,5 +1,5 @@
List<String> list=['1', '2', '3']
list.each{
it->
it.substring<caret>
it.substring(<caret>)
}
@@ -1,5 +1,5 @@
List<String> list=['a', 'b', 'c']
list.inject(2){
value, item->
item.substring<caret>
item.substring(<caret>)
}
@@ -2,7 +2,7 @@ public class Parent {
def foo(o) {
if (o instanceof String) {
o.substring<caret>
o.substring(<caret>)
}
}
@@ -1,5 +1,5 @@
def ctx = context(filetypes : ["unknown"])
contributor([ctx]) {
method<caret>
method(<caret>)
}
@@ -1,5 +1,5 @@
def ctx = context(filetypes : ["unknown"])
contributor([ctx]) {
findClass<caret>
findClass(<caret>)
}
@@ -10,5 +10,5 @@ class Runner {
def runner = new Runner()
runner.boo new MyDelegate(), {
saySomething<caret>
saySomething(<caret>)
}
@@ -13,5 +13,5 @@ class Runner {
def runner = new Runner()
runner.boo(new MyDelegate()) {
saySomething<caret>
saySomething(<caret>)
}
@@ -1,3 +1,3 @@
def foo() {
"".initCause<caret>
"".initCause(<caret>)
}
@@ -6,4 +6,4 @@ class MyBean {
def bean = new MyBean()
bean.firePropertyChange<caret>
bean.firePropertyChange(<caret>)
@@ -12,4 +12,4 @@ def gr8conf = new Event(title: "GR8 Conference",
when: df.parse("2009/05/18"))
gr8conf.before<caret>
gr8conf.before(<caret>)
@@ -6,4 +6,4 @@ class MyBean {
def bean = new MyBean()
bean.fireVetoableChange<caret>
bean.fireVetoableChange(<caret>)