This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 196812
Collapse All | Expand All

(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/GroovyDeclarationFinderTest.java (+1 lines)
Lines 155-160 Link Here
155
                "        return Inner^Classes.Type.DUMMY_1;", "InnerClasses.java", 12);
155
                "        return Inner^Classes.Type.DUMMY_1;", "InnerClasses.java", 12);
156
    }
156
    }
157
157
158
    // TESTFAIL
158
    public void testInnerClasses2() throws Exception {
159
    public void testInnerClasses2() throws Exception {
159
        checkDeclaration(TEST_BASE + "a/Declaration3.groovy",
160
        checkDeclaration(TEST_BASE + "a/Declaration3.groovy",
160
                "        return InnerClasses.Ty^pe.DUMMY_1;", "InnerClasses.java", 45);
161
                "        return InnerClasses.Ty^pe.DUMMY_1;", "InnerClasses.java", 45);
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/GroovyIndexerTest.java (+1 lines)
Lines 119-124 Link Here
119
//        });
119
//        });
120
    }
120
    }
121
121
122
    // TESTFAIL
122
    public void testClasses() throws Exception {
123
    public void testClasses() throws Exception {
123
        indexFile("testfiles/Hello.groovy");
124
        indexFile("testfiles/Hello.groovy");
124
        FileObject fo = getTestFile("testfiles/Hello.groovy");
125
        FileObject fo = getTestFile("testfiles/Hello.groovy");
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/CodeCompletionTest.java (+6 lines)
Lines 140-145 Link Here
140
        checkCompletion(TEST_BASE + "ClassMethodLocalString1.groovy", "localString.toL^", false);
140
        checkCompletion(TEST_BASE + "ClassMethodLocalString1.groovy", "localString.toL^", false);
141
    }
141
    }
142
142
143
    // TESTFAIL
143
    public void testClassMethodLocalString2() throws Exception {
144
    public void testClassMethodLocalString2() throws Exception {
144
        checkCompletion(TEST_BASE + "ClassMethodLocalString2.groovy", "localString.get^", false);
145
        checkCompletion(TEST_BASE + "ClassMethodLocalString2.groovy", "localString.get^", false);
145
    }
146
    }
Lines 158-172 Link Here
158
159
159
    // Closure items named and unnamed
160
    // Closure items named and unnamed
160
161
162
    // TESTFAIL
161
    public void testInsideClosure1() throws Exception {
163
    public void testInsideClosure1() throws Exception {
162
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "(1..3).any {println ^}", false);
164
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "(1..3).any {println ^}", false);
163
    }
165
    }
164
166
165
    public void testInsideClosure2() throws Exception {
167
    public void testInsideClosure2() throws Exception {
168
    // TESTFAIL
166
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "[3,4,5].each {println i^}", false);
169
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "[3,4,5].each {println i^}", false);
167
    }
170
    }
168
171
169
    public void testInsideClosure3() throws Exception {
172
    public void testInsideClosure3() throws Exception {
173
    // TESTFAIL
170
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "(1..3).any {aa,ab -> println a^}", false);
174
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "(1..3).any {aa,ab -> println a^}", false);
171
    }
175
    }
172
176
Lines 174-179 Link Here
174
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "[3,4,5].each {xu1,xu2,xu3 -> println xu^}", false);
178
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "[3,4,5].each {xu1,xu2,xu3 -> println xu^}", false);
175
    }
179
    }
176
180
181
    // TESTFAIL
177
    public void testInsideClosure5() throws Exception {
182
    public void testInsideClosure5() throws Exception {
178
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "def t1 = {println i^}", false);
183
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "def t1 = {println i^}", false);
179
    }
184
    }
Lines 183-188 Link Here
183
    }
188
    }
184
189
185
    public void testInsideClosure7() throws Exception {
190
    public void testInsideClosure7() throws Exception {
191
    // TESTFAIL
186
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "\"TestString\".eachLine {String line -> println i^}", false);
192
        checkCompletion(CLOSURE_BASE + "InsideClosure1.groovy", "\"TestString\".eachLine {String line -> println i^}", false);
187
    }
193
    }
188
194
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/CollectionsTest.java (+1 lines)
Lines 88-93 Link Here
88
        checkCompletion(TEST_BASE + "" + "Collections1.groovy", "    1..10.d^", false);
88
        checkCompletion(TEST_BASE + "" + "Collections1.groovy", "    1..10.d^", false);
89
    }
89
    }
90
90
91
    // TESTFAIL
91
    public void testCollections5() throws Exception {
92
    public void testCollections5() throws Exception {
92
        checkCompletion(TEST_BASE + "" + "Collections1.groovy", "    (1..10).^", false);
93
        checkCompletion(TEST_BASE + "" + "Collections1.groovy", "    (1..10).^", false);
93
    }
94
    }
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/CompletionAccessTest.java (+1 lines)
Lines 81-86 Link Here
81
81
82
    // FIXME this does not provide accurate results, but we need to test
82
    // FIXME this does not provide accurate results, but we need to test
83
    // at least basic closure completion
83
    // at least basic closure completion
84
    // TESTFAIL
84
    public void testBasicAccessLevels1() throws Exception {
85
    public void testBasicAccessLevels1() throws Exception {
85
        checkCompletion(TEST_BASE + "" + "Access1.groovy", "        this.^", false);
86
        checkCompletion(TEST_BASE + "" + "Access1.groovy", "        this.^", false);
86
    }  
87
    }  
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/DuplicatesCompletionTest.java (+2 lines)
Lines 83-88 Link Here
83
        return map;
83
        return map;
84
    }
84
    }
85
85
86
    // TESTFAIL
86
    public void testDuplicates1() throws Exception {
87
    public void testDuplicates1() throws Exception {
87
        checkCompletion(TEST_BASE + "b/B.groovy", "class B extends A^ {", true);
88
        checkCompletion(TEST_BASE + "b/B.groovy", "class B extends A^ {", true);
88
    }
89
    }
Lines 91-96 Link Here
91
        checkCompletion(TEST_BASE + "c/C.groovy", "class C extends a.A^ {", true);
92
        checkCompletion(TEST_BASE + "c/C.groovy", "class C extends a.A^ {", true);
92
    }
93
    }
93
94
95
    // TESTFAIL
94
    public void testDuplicates3() throws Exception {
96
    public void testDuplicates3() throws Exception {
95
        checkCompletion(TEST_BASE + "d/D.groovy", "class D extends java.util.A^ {", true);
97
        checkCompletion(TEST_BASE + "d/D.groovy", "class D extends java.util.A^ {", true);
96
    }
98
    }
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/GrailsConfigsTest.java (+1 lines)
Lines 69-74 Link Here
69
69
70
    // FIXME this does not provide accurate results, but we need to test
70
    // FIXME this does not provide accurate results, but we need to test
71
    // at least basic closure completion
71
    // at least basic closure completion
72
    // TESTFAIL
72
    public void testDataSourceClosure1() throws Exception {
73
    public void testDataSourceClosure1() throws Exception {
73
        checkCompletion(TEST_BASE + "" + "GrailsConfig1.groovy", "}.^", false);
74
        checkCompletion(TEST_BASE + "" + "GrailsConfig1.groovy", "}.^", false);
74
    }  
75
    }  
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/MethodCompletionTest.java (+13 lines)
Lines 92-106 Link Here
92
        checkCompletion(TEST_BASE + "" + "Methods1.groovy", "        new URL(\"http://google.com\").getP^r", false);
92
        checkCompletion(TEST_BASE + "" + "Methods1.groovy", "        new URL(\"http://google.com\").getP^r", false);
93
    }
93
    }
94
94
95
    // TESTFAIL
95
    public void testMethods3() throws Exception {
96
    public void testMethods3() throws Exception {
96
        checkCompletion(TEST_BASE + "" + "Methods1.groovy", "        new URL(\"http://google.com\").get^Pr", false);
97
        checkCompletion(TEST_BASE + "" + "Methods1.groovy", "        new URL(\"http://google.com\").get^Pr", false);
97
    }
98
    }
98
99
100
    // TESTFAIL
99
    public void testMethods4() throws Exception {
101
    public void testMethods4() throws Exception {
100
        checkCompletion(TEST_BASE + "" + "Methods1.groovy", "        new URL(\"http://google.com\").^getPr", false);
102
        checkCompletion(TEST_BASE + "" + "Methods1.groovy", "        new URL(\"http://google.com\").^getPr", false);
101
    }
103
    }
102
104
103
    public void testMethods5() throws Exception {
105
    public void testMethods5() throws Exception {
106
    // TESTFAIL
104
        checkCompletion(TEST_BASE + "" + "Methods2.groovy", "        new Byte().^", false);
107
        checkCompletion(TEST_BASE + "" + "Methods2.groovy", "        new Byte().^", false);
105
    }
108
    }
106
109
Lines 109-114 Link Here
109
    }
112
    }
110
113
111
    public void testCompletionInMethodCall2() throws Exception {
114
    public void testCompletionInMethodCall2() throws Exception {
115
    // TESTFAIL
112
        checkCompletion(TEST_BASE + "" + "Methods5.groovy", "        new File(\"something\").c^", false);
116
        checkCompletion(TEST_BASE + "" + "Methods5.groovy", "        new File(\"something\").c^", false);
113
    }
117
    }
114
118
Lines 136-157 Link Here
136
        checkCompletion(TEST_BASE + "" + "Methods9.groovy", "new File(\"/\").equals(new Date().a^", false);
140
        checkCompletion(TEST_BASE + "" + "Methods9.groovy", "new File(\"/\").equals(new Date().a^", false);
137
    }
141
    }
138
142
143
    // TESTFAIL
139
    public void testCompletionInsideConstructor2() throws Exception {
144
    public void testCompletionInsideConstructor2() throws Exception {
140
        checkCompletion(TEST_BASE + "" + "Methods9.groovy", "new File(new Date().get^", false);
145
        checkCompletion(TEST_BASE + "" + "Methods9.groovy", "new File(new Date().get^", false);
141
    }
146
    }
142
147
148
    // TESTFAIL
143
    public void testCompletionInsideConstructor3() throws Exception {
149
    public void testCompletionInsideConstructor3() throws Exception {
144
        checkCompletion(TEST_BASE + "" + "Methods9.groovy", "if (new File(new Date().get^", false);
150
        checkCompletion(TEST_BASE + "" + "Methods9.groovy", "if (new File(new Date().get^", false);
145
    }
151
    }
146
152
153
    // TESTFAIL
147
    public void testCompletionInsideFor1() throws Exception {
154
    public void testCompletionInsideFor1() throws Exception {
148
        checkCompletion(TEST_BASE + "" + "Methods9.groovy", "for(new Date().get^", false);
155
        checkCompletion(TEST_BASE + "" + "Methods9.groovy", "for(new Date().get^", false);
149
    }
156
    }
150
157
158
    // TESTFAIL
151
    public void testCompletionNoPrefixString1() throws Exception {
159
    public void testCompletionNoPrefixString1() throws Exception {
152
        checkCompletion(TEST_BASE + "" + "Methods10.groovy", "println \"Hello $name!\".^", false);
160
        checkCompletion(TEST_BASE + "" + "Methods10.groovy", "println \"Hello $name!\".^", false);
153
    }
161
    }
154
162
163
    // TESTFAIL
155
    public void testCompletionNoPrefixString2() throws Exception {
164
    public void testCompletionNoPrefixString2() throws Exception {
156
        checkCompletion(TEST_BASE + "" + "Methods11.groovy", "def name='Petr'.^", false);
165
        checkCompletion(TEST_BASE + "" + "Methods11.groovy", "def name='Petr'.^", false);
157
    }
166
    }
Lines 170-183 Link Here
170
        checkCompletion(TEST_BASE + "" + "Methods12.groovy", "        new Test().set^", false);
179
        checkCompletion(TEST_BASE + "" + "Methods12.groovy", "        new Test().set^", false);
171
    }
180
    }
172
181
182
    // TESTFAIL
173
    public void testCompletionGroovyClass1() throws Exception {
183
    public void testCompletionGroovyClass1() throws Exception {
174
        checkCompletion(TEST_BASE + "" + "Methods13.groovy", "        new Test1().^", false);
184
        checkCompletion(TEST_BASE + "" + "Methods13.groovy", "        new Test1().^", false);
175
    }
185
    }
176
186
187
    // TESTFAIL
177
    public void testCompletionGroovyThis1() throws Exception {
188
    public void testCompletionGroovyThis1() throws Exception {
178
        checkCompletion(TEST_BASE + "" + "Methods14.groovy", "        this.get^", false);
189
        checkCompletion(TEST_BASE + "" + "Methods14.groovy", "        this.get^", false);
179
    }
190
    }
180
191
192
    // TESTFAIL
181
    public void testCompletionGroovySuper1() throws Exception {
193
    public void testCompletionGroovySuper1() throws Exception {
182
        checkCompletion(TEST_BASE + "" + "Methods15.groovy", "        super.^", false);
194
        checkCompletion(TEST_BASE + "" + "Methods15.groovy", "        super.^", false);
183
    }
195
    }
Lines 190-195 Link Here
190
        checkCompletion(TEST_BASE + "" + "Methods16.groovy", "        x^", false);
202
        checkCompletion(TEST_BASE + "" + "Methods16.groovy", "        x^", false);
191
    }
203
    }
192
204
205
    // TESTFAIL
193
    public void testCompletionNoDot3() throws Exception {
206
    public void testCompletionNoDot3() throws Exception {
194
        checkCompletion(TEST_BASE + "" + "Methods16.groovy", "        n^", false);
207
        checkCompletion(TEST_BASE + "" + "Methods16.groovy", "        n^", false);
195
    }
208
    }
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/TransformationsCompletionTest.java (+1 lines)
Lines 87-92 Link Here
87
        checkCompletion(TEST_BASE + "Transformations1.groovy", "        Transformations1.in^", true);
87
        checkCompletion(TEST_BASE + "Transformations1.groovy", "        Transformations1.in^", true);
88
    }
88
    }
89
89
90
    // TESTFAIL
90
    public void testTransformations2() throws Exception {
91
    public void testTransformations2() throws Exception {
91
        checkCompletion(TEST_BASE + "Transformations2.groovy", "        Transformations2.get^", true);
92
        checkCompletion(TEST_BASE + "Transformations2.groovy", "        Transformations2.get^", true);
92
    }
93
    }
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/TypesCompletionTest.java (+1 lines)
Lines 163-168 Link Here
163
163
164
    // test if interfaces and only interfaces are proposed:
164
    // test if interfaces and only interfaces are proposed:
165
    
165
    
166
    // TESTFAIL
166
    public void testInterfaceCompletion1() throws Exception {
167
    public void testInterfaceCompletion1() throws Exception {
167
        checkCompletion(TYPES_BASE + "" + "InterfaceCompletion1.groovy", "class SpecialGroovyClass implements ^Runnable, Serializable {", false);
168
        checkCompletion(TYPES_BASE + "" + "InterfaceCompletion1.groovy", "class SpecialGroovyClass implements ^Runnable, Serializable {", false);
168
    }
169
    }
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/VariablesCompletionTest.java (+5 lines)
Lines 83-88 Link Here
83
        return map;
83
        return map;
84
    }
84
    }
85
85
86
    // TESTFAIL
86
    public void testVariables1() throws Exception {
87
    public void testVariables1() throws Exception {
87
        checkCompletion(TEST_BASE + "Variables1.groovy", "            i^", true);
88
        checkCompletion(TEST_BASE + "Variables1.groovy", "            i^", true);
88
    }
89
    }
Lines 91-96 Link Here
91
        checkCompletion(TEST_BASE + "Variables1.groovy", "        it^", true);
92
        checkCompletion(TEST_BASE + "Variables1.groovy", "        it^", true);
92
    }
93
    }
93
94
95
    // TESTFAIL
94
    public void testVariables3() throws Exception {
96
    public void testVariables3() throws Exception {
95
        checkCompletion(TEST_BASE + "Variables1.groovy", "            a^", true);
97
        checkCompletion(TEST_BASE + "Variables1.groovy", "            a^", true);
96
    }
98
    }
Lines 127-141 Link Here
127
        checkCompletion(TEST_BASE + "Variables2.groovy", "            pa^", true);
129
        checkCompletion(TEST_BASE + "Variables2.groovy", "            pa^", true);
128
    }
130
    }
129
131
132
    // TESTFAIL
130
    public void testVariables12() throws Exception {
133
    public void testVariables12() throws Exception {
131
        checkCompletion(TEST_BASE + "Variables3.groovy", "println \"Hello $name!\" ^", true);
134
        checkCompletion(TEST_BASE + "Variables3.groovy", "println \"Hello $name!\" ^", true);
132
    }
135
    }
133
136
134
    public void testVariables13() throws Exception {
137
    public void testVariables13() throws Exception {
138
    // TESTFAIL
135
        checkCompletion(TEST_BASE + "Variables3.groovy", "    x ^", true);
139
        checkCompletion(TEST_BASE + "Variables3.groovy", "    x ^", true);
136
    }
140
    }
137
141
138
    public void testVariables14() throws Exception {
142
    public void testVariables14() throws Exception {
143
    // TESTFAIL
139
        checkCompletion(TEST_BASE + "Variables3.groovy", "    def x ^", true);
144
        checkCompletion(TEST_BASE + "Variables3.groovy", "    def x ^", true);
140
    }
145
    }
141
}
146
}
(-)a/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/parser/GroovyVirtualSourceProviderTest.java (+6 lines)
Lines 61-66 Link Here
61
        super(testName);
61
        super(testName);
62
    }
62
    }
63
63
64
    // TESTFAIL
64
    public void testGeneratorWithClass() throws IOException {
65
    public void testGeneratorWithClass() throws IOException {
65
        copyStringToFileObject(testFO,
66
        copyStringToFileObject(testFO,
66
                "class Foo {\n" +
67
                "class Foo {\n" +
Lines 93-98 Link Here
93
                "}\n", charSequence);
94
                "}\n", charSequence);
94
    }
95
    }
95
96
97
    // TESTFAIL
96
    public void testGeneratorWithScript() throws IOException {
98
    public void testGeneratorWithScript() throws IOException {
97
        copyStringToFileObject(testFO,
99
        copyStringToFileObject(testFO,
98
                "def closure1 = {\n" +
100
                "def closure1 = {\n" +
Lines 124-129 Link Here
124
                "}\n", charSequence);
126
                "}\n", charSequence);
125
    }
127
    }
126
128
129
    // TESTFAIL
127
    public void testGenerics() throws IOException {
130
    public void testGenerics() throws IOException {
128
        copyStringToFileObject(testFO,
131
        copyStringToFileObject(testFO,
129
                "class Foo {\n" +
132
                "class Foo {\n" +
Lines 151-156 Link Here
151
                "}\n", charSequence);
154
                "}\n", charSequence);
152
    }
155
    }
153
156
157
    // TESTFAIL
154
    public void testImports() throws IOException {
158
    public void testImports() throws IOException {
155
        copyStringToFileObject(testFO,
159
        copyStringToFileObject(testFO,
156
            "import javax.swing.JPanel\n" +
160
            "import javax.swing.JPanel\n" +
Lines 180-185 Link Here
180
                "}\n", charSequence);
184
                "}\n", charSequence);
181
    }
185
    }
182
186
187
    // TESTFAIL
183
    public void testMultipleClasses() throws IOException {
188
    public void testMultipleClasses() throws IOException {
184
        copyStringToFileObject(testFO,
189
        copyStringToFileObject(testFO,
185
                "class PostService {\n" +
190
                "class PostService {\n" +
Lines 231-236 Link Here
231
                "}\n", charSequence);
236
                "}\n", charSequence);
232
    }
237
    }
233
238
239
    // TESTFAIL
234
    public void testThrowsClause() throws IOException {
240
    public void testThrowsClause() throws IOException {
235
        copyStringToFileObject(testFO,
241
        copyStringToFileObject(testFO,
236
            "class MyTest {\n"+
242
            "class MyTest {\n"+

Return to bug 196812