KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > editor > app > tests > CompletionPerformer


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

20
21 package org.netbeans.test.editor.app.tests;
22 import java.io.PrintWriter JavaDoc;
23 import org.openide.filesystems.*;
24 import org.netbeans.junit.NbTestCase;
25 import org.netbeans.junit.NbTestSuite;
26 import java.io.File JavaDoc;
27 import org.netbeans.test.editor.LineDiff;
28
29
30 /**
31  *
32  * @author ehucka
33  * @version 1.1
34  * Test of invoking CC. */

35
36 public class CompletionPerformer extends NbTestCase {
37 public CompletionPerformer(String JavaDoc name) {
38 super(name);
39 }
40 public void tearDown() throws Exception JavaDoc {
41     assertFile("Output does not match golden file.", getGoldenFile(), new File JavaDoc(getWorkDir(), this.getName() + ".ref"), new File JavaDoc(getWorkDir(), this.getName() + ".diff"), new LineDiff(false));
42 }
43
44 /**
45  * Call Action: FooClass
46  * Sub Test: BasicTests
47  * Author: ehucka
48  * Version: 1.1
49  * Comment: Test of invoking CC.
50  */

51
52 public void testFooClass() throws Exception JavaDoc {
53 PrintWriter JavaDoc ref = null;
54 PrintWriter JavaDoc log = null;
55 String JavaDoc[] arguments = new String JavaDoc[] {
56 "/org/netbeans/test/editor/app/tests/completion.xml",
57 "BasicTests.FooClass"
58 };
59 try {
60 ref = new PrintWriter JavaDoc(getRef());
61 log = new PrintWriter JavaDoc(getLog());
62 new CallTestGeneric().runTest(arguments, log, ref);
63 } finally {
64 if (ref != null) ref.flush();
65 if (log != null) log.flush();
66 }
67 }
68
69 /**
70  * Call Action: ObjectMethods
71  * Sub Test: BasicTests
72  * Author: ehucka
73  * Version: 1.1
74  * Comment: Test of invoking CC.
75  */

76
77 public void testObjectMethods() throws Exception JavaDoc {
78 PrintWriter JavaDoc ref = null;
79 PrintWriter JavaDoc log = null;
80 String JavaDoc[] arguments = new String JavaDoc[] {
81 "/org/netbeans/test/editor/app/tests/completion.xml",
82 "BasicTests.ObjectMethods"
83 };
84 try {
85 ref = new PrintWriter JavaDoc(getRef());
86 log = new PrintWriter JavaDoc(getLog());
87 new CallTestGeneric().runTest(arguments, log, ref);
88 } finally {
89 if (ref != null) ref.flush();
90 if (log != null) log.flush();
91 }
92 }
93
94 /**
95  * Call Action: RetypeClass
96  * Sub Test: BasicTests
97  * Author: ehucka
98  * Version: 1.1
99  * Comment: Test of invoking CC.
100  */

101
102 public void testRetypeClass() throws Exception JavaDoc {
103 PrintWriter JavaDoc ref = null;
104 PrintWriter JavaDoc log = null;
105 String JavaDoc[] arguments = new String JavaDoc[] {
106 "/org/netbeans/test/editor/app/tests/completion.xml",
107 "BasicTests.RetypeClass"
108 };
109 try {
110 ref = new PrintWriter JavaDoc(getRef());
111 log = new PrintWriter JavaDoc(getLog());
112 new CallTestGeneric().runTest(arguments, log, ref);
113 } finally {
114 if (ref != null) ref.flush();
115 if (log != null) log.flush();
116 }
117 }
118
119 /**
120  * Call Action: StayInvoked
121  * Sub Test: BasicTests
122  * Author: ehucka
123  * Version: 1.1
124  * Comment: Test of invoking CC.
125  */

126
127 public void testStayInvoked() throws Exception JavaDoc {
128 PrintWriter JavaDoc ref = null;
129 PrintWriter JavaDoc log = null;
130 String JavaDoc[] arguments = new String JavaDoc[] {
131 "/org/netbeans/test/editor/app/tests/completion.xml",
132 "BasicTests.StayInvoked"
133 };
134 try {
135 ref = new PrintWriter JavaDoc(getRef());
136 log = new PrintWriter JavaDoc(getLog());
137 new CallTestGeneric().runTest(arguments, log, ref);
138 } finally {
139 if (ref != null) ref.flush();
140 if (log != null) log.flush();
141 }
142 }
143
144 /**
145  * Call Action: CaseInsensitive
146  * Sub Test: Settings
147  * Author: ehucka
148  * Version: 1.1
149  * Comment: This test will fails depend on issue 29406.
150  */

151
152 public void testCaseInsensitive() throws Exception JavaDoc {
153 PrintWriter JavaDoc ref = null;
154 PrintWriter JavaDoc log = null;
155 String JavaDoc[] arguments = new String JavaDoc[] {
156 "/org/netbeans/test/editor/app/tests/completion.xml",
157 "Settings.CaseInsensitive"
158 };
159 try {
160 ref = new PrintWriter JavaDoc(getRef());
161 log = new PrintWriter JavaDoc(getLog());
162 new CallTestGeneric().runTest(arguments, log, ref);
163 } finally {
164 if (ref != null) ref.flush();
165 if (log != null) log.flush();
166 }
167 }
168
169 /**
170  * Call Action: InstantSubstitution
171  * Sub Test: Settings
172  * Author: ehucka
173  * Version: 1.1
174  * Comment: This test will fails depend on issue 29406.
175  */

176
177 public void testInstantSubstitution() throws Exception JavaDoc {
178 PrintWriter JavaDoc ref = null;
179 PrintWriter JavaDoc log = null;
180 String JavaDoc[] arguments = new String JavaDoc[] {
181 "/org/netbeans/test/editor/app/tests/completion.xml",
182 "Settings.InstantSubstitution"
183 };
184 try {
185 ref = new PrintWriter JavaDoc(getRef());
186 log = new PrintWriter JavaDoc(getLog());
187 new CallTestGeneric().runTest(arguments, log, ref);
188 } finally {
189 if (ref != null) ref.flush();
190 if (log != null) log.flush();
191 }
192 }
193
194 /**
195  * Call Action: CCAfterMethods
196  * Sub Test: Issues
197  * Author: ehucka
198  * Version: 1.1
199  * Comment: It tests issues 28055.
200  */

201
202 public void testCCAfterMethods() throws Exception JavaDoc {
203 PrintWriter JavaDoc ref = null;
204 PrintWriter JavaDoc log = null;
205 String JavaDoc[] arguments = new String JavaDoc[] {
206 "/org/netbeans/test/editor/app/tests/completion.xml",
207 "Issues.CCAfterMethods"
208 };
209 try {
210 ref = new PrintWriter JavaDoc(getRef());
211 log = new PrintWriter JavaDoc(getLog());
212 new CallTestGeneric().runTest(arguments, log, ref);
213 } finally {
214 if (ref != null) ref.flush();
215 if (log != null) log.flush();
216 }
217 }
218
219 /**
220  * Call Action: PackageCC
221  * Sub Test: Issues
222  * Author: ehucka
223  * Version: 1.1
224  * Comment: It tests issues 28055.
225  */

226
227 public void testPackageCC() throws Exception JavaDoc {
228 PrintWriter JavaDoc ref = null;
229 PrintWriter JavaDoc log = null;
230 String JavaDoc[] arguments = new String JavaDoc[] {
231 "/org/netbeans/test/editor/app/tests/completion.xml",
232 "Issues.PackageCC"
233 };
234 try {
235 ref = new PrintWriter JavaDoc(getRef());
236 log = new PrintWriter JavaDoc(getLog());
237 new CallTestGeneric().runTest(arguments, log, ref);
238 } finally {
239 if (ref != null) ref.flush();
240 if (log != null) log.flush();
241 }
242 }
243
244 /**
245  * Call Action: BasicHTML
246  * Sub Test: HTMLCompletion
247  * Author: ehucka
248  * Version: 1.1
249  * Comment: Basic test of HTML CC.
250
251  */

252
253 public void testBasicHTML() throws Exception JavaDoc {
254 PrintWriter JavaDoc ref = null;
255 PrintWriter JavaDoc log = null;
256 String JavaDoc[] arguments = new String JavaDoc[] {
257 "/org/netbeans/test/editor/app/tests/completion.xml",
258 "HTMLCompletion.BasicHTML"
259 };
260 try {
261 ref = new PrintWriter JavaDoc(getRef());
262 log = new PrintWriter JavaDoc(getLog());
263 new CallTestGeneric().runTest(arguments, log, ref);
264 } finally {
265 if (ref != null) ref.flush();
266 if (log != null) log.flush();
267 }
268 }
269 }
270
Popular Tags