KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > java > editor > completion > SmartCCTests


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.test.java.editor.completion;
21
22 import org.netbeans.spi.editor.completion.CompletionProvider;
23
24 /**
25  *
26  * @author jp159440
27  */

28 public class SmartCCTests extends CompletionTestPerformer{
29     
30    
31     public SmartCCTests(String JavaDoc name) {
32         super(name);
33     }
34     
35      
36     public void testsmartassign() throws Exception JavaDoc {
37         new CompletionTest().test(outputWriter, logWriter, "Double x = ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
38     }
39     
40     public void testsmartassign2() throws Exception JavaDoc {
41         new CompletionTest().test(outputWriter, logWriter, "Number x = ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
42     }
43     
44     public void testsmartassign3() throws Exception JavaDoc {
45         new CompletionTest().test(outputWriter, logWriter, "Number x = new ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
46     }
47     
48     public void testsmartassign4() throws Exception JavaDoc {
49         new CompletionTest().test(outputWriter, logWriter, "List x = new ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
50     }
51     
52     public void testsmartassign5() throws Exception JavaDoc {
53         new CompletionTest().test(outputWriter, logWriter, "String x = ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
54     }
55     
56     public void testsmartExtends() throws Exception JavaDoc {
57         new CompletionTest().test(outputWriter, logWriter, "class A extends ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 32,CompletionProvider.COMPLETION_QUERY_TYPE);
58     }
59     
60     public void testsmartImplements() throws Exception JavaDoc {
61         new CompletionTest().test(outputWriter, logWriter, "class B implements ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 32,CompletionProvider.COMPLETION_QUERY_TYPE);
62     }
63     
64     public void testsmartThrows() throws Exception JavaDoc {
65         new CompletionTest().test(outputWriter, logWriter, "public void method() throws ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 32,CompletionProvider.COMPLETION_QUERY_TYPE);
66     }
67     
68     public void testsmartAnnotation() throws Exception JavaDoc {
69         new CompletionTest().test(outputWriter, logWriter, "@", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 32,CompletionProvider.COMPLETION_QUERY_TYPE);
70     }
71     
72     public void testsmartImport() throws Exception JavaDoc {
73         new CompletionTest().test(outputWriter, logWriter, "import ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 21,CompletionProvider.COMPLETION_QUERY_TYPE);
74     }
75     
76     public void testsmartImportStatic() throws Exception JavaDoc {
77         new CompletionTest().test(outputWriter, logWriter, "import static java.awt.Color.", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 21,CompletionProvider.COMPLETION_QUERY_TYPE);
78     }
79     
80     public void testsmartSuperParameter() throws Exception JavaDoc {
81         new CompletionTest().test(outputWriter, logWriter, "super(", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 31,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
82     }
83     
84     public void testsmartInnerClassAsParameter() throws Exception JavaDoc {
85         new CompletionTest().test(outputWriter, logWriter, "method(", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 41,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
86     }
87     
88     public void testsmartInnerClassAsParameter2() throws Exception JavaDoc {
89         new CompletionTest().test(outputWriter, logWriter, "method( new ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 41,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
90     }
91     
92     public void testsmartReturn() throws Exception JavaDoc {
93         new CompletionTest().test(outputWriter, logWriter, "return ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 42,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
94     }
95     
96     public void testsmartReturn2() throws Exception JavaDoc {
97         new CompletionTest().test(outputWriter, logWriter, "return new ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 42,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
98     }
99     
100     public void testsmartCatch() throws Exception JavaDoc {
101         new CompletionTest().test(outputWriter, logWriter, "catch (", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 51,CompletionProvider.COMPLETION_SMART_QUERY_TYPE);
102     }
103
104     
105     
106 }
107
Popular Tags