KickJava   Java API By Example, From Geeks To Geeks.

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


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, jlahoda
33  * @version 1.1
34  * */

35
36 public class IndentationPerformer extends NbTestCase {
37 public IndentationPerformer(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: Round
46  * Sub Test: Reformatting
47  * Author: ehucka, jlahoda
48  * Version: 1.1
49  * Comment:
50  */

51
52 public void testRound() 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/indentation.xml",
57 "Reformatting.Round"
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: RoundAddNewLine
71  * Sub Test: Reformatting
72  * Author: ehucka, jlahoda
73  * Version: 1.1
74  * Comment:
75  */

76
77 public void testRoundAddNewLine() 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/indentation.xml",
82 "Reformatting.RoundAddNewLine"
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: RoundAddSpace
96  * Sub Test: Reformatting
97  * Author: ehucka, jlahoda
98  * Version: 1.1
99  * Comment:
100  */

101
102 public void testRoundAddSpace() 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/indentation.xml",
107 "Reformatting.RoundAddSpace"
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: Compound
121  * Sub Test: Reformatting
122  * Author: ehucka, jlahoda
123  * Version: 1.1
124  * Comment:
125  */

126
127 public void testCompound() 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/indentation.xml",
132 "Reformatting.Compound"
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: CompoundNewLine
146  * Sub Test: Reformatting
147  * Author: ehucka, jlahoda
148  * Version: 1.1
149  * Comment:
150  */

151
152 public void testCompoundNewLine() 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/indentation.xml",
157 "Reformatting.CompoundNewLine"
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: ClosingSameLine
171  * Sub Test: Reformatting
172  * Author: ehucka, jlahoda
173  * Version: 1.1
174  * Comment:
175  */

176
177 public void testClosingSameLine() 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/indentation.xml",
182 "Reformatting.ClosingSameLine"
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: SpecialAddNewLine
196  * Sub Test: Writting
197  * Author: ehucka, jlahoda
198  * Version: 1.1
199  * Comment:
200  */

201
202 public void testSpecialAddNewLine() 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/indentation.xml",
207 "Writting.SpecialAddNewLine"
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: TwoBrackets
221  * Sub Test: Writting
222  * Author: ehucka, jlahoda
223  * Version: 1.1
224  * Comment:
225  */

226
227 public void testTwoBrackets() 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/indentation.xml",
232 "Writting.TwoBrackets"
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: DoWhile
246  * Sub Test: Issues
247  * Author: ehucka, jlahoda
248  * Version: 1.1
249  * Comment:
250  */

251
252 public void testDoWhile() throws Exception JavaDoc {
253 PrintWriter JavaDoc ref = null;
254 PrintWriter JavaDoc log = null;
255 String JavaDoc[] arguments = new String JavaDoc[] {
256 "/org/netbeans/test/editor/app/tests/indentation.xml",
257 "Issues.DoWhile"
258 };
259 try {
260 ref = new PrintWriter JavaDoc(getRef());
261 log = new PrintWriter JavaDoc(getLog());
262 new CallTestGeneric().runTest(arguments, log, ref);
263 } finally {
264 if (ref != null) ref.flush();
265 if (log != null) log.flush();
266 }
267 }
268
269 /**
270  * Call Action: Ternary
271  * Sub Test: Issues
272  * Author: ehucka, jlahoda
273  * Version: 1.1
274  * Comment:
275  */

276
277 public void testTernary() throws Exception JavaDoc {
278 PrintWriter JavaDoc ref = null;
279 PrintWriter JavaDoc log = null;
280 String JavaDoc[] arguments = new String JavaDoc[] {
281 "/org/netbeans/test/editor/app/tests/indentation.xml",
282 "Issues.Ternary"
283 };
284 try {
285 ref = new PrintWriter JavaDoc(getRef());
286 log = new PrintWriter JavaDoc(getLog());
287 new CallTestGeneric().runTest(arguments, log, ref);
288 } finally {
289 if (ref != null) ref.flush();
290 if (log != null) log.flush();
291 }
292 }
293 }
294
Popular Tags