KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > java > editor > completion > JavaCompletionProviderElementCreatingTest


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.java.editor.completion;
21
22 /**
23  *
24  * @author Jan Lahoda, Dusan Balek
25  */

26 public class JavaCompletionProviderElementCreatingTest extends CompletionTestBase {
27
28     public JavaCompletionProviderElementCreatingTest(String JavaDoc testName) {
29         super(testName);
30     }
31
32     public void testUnimplementedMethod() throws Exception JavaDoc {
33         performTest("UnimplementedMethod", 115, "", "UnimplementedMethod.pass");
34     }
35     
36     public void testOverrideAbstractList() throws Exception JavaDoc {
37         performTest("OverrideAbstractList", 146, "", "OverrideAbstractList.pass");
38     }
39
40     public void testOverrideAbstractListWithPrefix() throws Exception JavaDoc {
41         performTest("OverrideAbstractList", 146, "to", "OverrideAbstractListWithPrefix.pass", "toSt.*override", "OverrideAbstractListWithPrefix.pass2");
42     }
43     
44     public void testOverrideFinalize() throws Exception JavaDoc {
45         performTest("OverrideAbstractList", 146, "fin", "OverrideFinalize.pass", "finali.*override", "OverrideFinalize.pass2");
46     }
47     
48     public void testOverrideAbstractList2a() throws Exception JavaDoc {
49         performTest("OverrideAbstractList2", 169, "ad", "OverrideAbstractList2a.pass", "add.*override", "OverrideAbstractList2a.pass2");
50     }
51     
52     public void testOverrideAbstractList2b() throws Exception JavaDoc {
53         performTest("OverrideAbstractList2", 169, "ge", "OverrideAbstractList2b.pass", "ge.*implement", "OverrideAbstractList2b.pass2");
54     }
55     
56     public void testOverrideAbstractList3a() throws Exception JavaDoc {
57         performTest("OverrideAbstractList3", 156, "ad", "OverrideAbstractList3a.pass", "add.*override", "OverrideAbstractList3a.pass2");
58     }
59     
60     public void testOverrideAbstractList3b() throws Exception JavaDoc {
61         performTest("OverrideAbstractList3", 156, "ge", "OverrideAbstractList3b.pass", "ge.*implement", "OverrideAbstractList3b.pass2");
62     }
63     
64     public void testOverrideTypedException1() throws Exception JavaDoc {
65         performTest("OverrideTypedException", 237, "tes", "OverrideTypedException1.pass", "tes.*override", "OverrideTypedException1.pass2");
66     }
67     
68     public void testOverrideTypedException2() throws Exception JavaDoc {
69         performTest("OverrideTypedException", 351, "tes", "OverrideTypedException2.pass", "tes.*override", "OverrideTypedException2.pass2");
70     }
71     
72     public void testOverrideInInnerClass() throws Exception JavaDoc {
73         performTest("OverrideInInnerClass", 217, "pai", "OverrideInInnerClass.pass", "paint\\(.*override", "OverrideInInnerClass.pass2");
74     }
75     
76     public void testOverrideInInnerClassUnresolvable() throws Exception JavaDoc {
77         performTest("OverrideInInnerClassUnresolvable", 213, "pai", "empty.pass");
78     }
79     
80     public void testCreateConstructorTest() throws Exception JavaDoc {
81         performTest("CreateConstructorTest", 266, "", "CreateConstructorTest.pass");
82     }
83
84     public void testCreateConstructorTestInnerClass() throws Exception JavaDoc {
85         performTest("CreateConstructorTest", 451, "", "CreateConstructorTestInnerClass.pass");
86     }
87
88     public void testCreateConstructorWithConstructors() throws Exception JavaDoc {
89         performTest("CreateConstructorWithConstructors", 487, "", "CreateConstructorWithConstructors.pass");
90     }
91
92     public void testCreateConstructorWithConstructorsInnerClass() throws Exception JavaDoc {
93         performTest("CreateConstructorWithConstructors", 672, "", "CreateConstructorWithConstructorsInnerClass.pass");
94     }
95
96     public void testCreateConstructorWithDefaultConstructor() throws Exception JavaDoc {
97         performTest("CreateConstructorWithDefaultConstructor", 365, "", "CreateConstructorWithDefaultConstructor.pass");
98     }
99
100     public void testCreateConstructorWithDefaultConstructorInnerClass() throws Exception JavaDoc {
101         performTest("CreateConstructorWithDefaultConstructor", 607, "", "CreateConstructorWithDefaultConstructorInnerClass.pass");
102     }
103
104     public void testCreateConstructorNonDefaultConstructor() throws Exception JavaDoc {
105         performTest("CreateConstructorNonDefaultConstructor", 364, "", "CreateConstructorNonDefaultConstructor.pass");
106     }
107
108     public void testCreateConstructorNonDefaultConstructorInnerClass() throws Exception JavaDoc {
109         performTest("CreateConstructorNonDefaultConstructor", 632, "", "CreateConstructorNonDefaultConstructorInnerClass.pass");
110     }
111 }
112
Popular Tags