KickJava   Java API By Example, From Geeks To Geeks.

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


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.2
34  * */

35
36 public class JavaDocPerformer extends NbTestCase {
37 public JavaDocPerformer(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: Inside
46  * Sub Test: Writting
47  * Author: ehucka
48  * Version: 1.2
49  * Comment:
50  */

51
52 public void testInside() 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/javadoc.xml",
57 "Writting.Inside"
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: Start
71  * Sub Test: Writting
72  * Author: ehucka
73  * Version: 1.2
74  * Comment:
75  */

76
77 public void testStart() 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/javadoc.xml",
82 "Writting.Start"
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: End
96  * Sub Test: Writting
97  * Author: ehucka
98  * Version: 1.2
99  * Comment:
100  */

101
102 public void testEnd() 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/javadoc.xml",
107 "Writting.End"
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: InsideNoLeading
121  * Sub Test: Writting
122  * Author: ehucka
123  * Version: 1.2
124  * Comment:
125  */

126
127 public void testInsideNoLeading() 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/javadoc.xml",
132 "Writting.InsideNoLeading"
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: StartNoLeading
146  * Sub Test: Writting
147  * Author: ehucka
148  * Version: 1.2
149  * Comment:
150  */

151
152 public void testStartNoLeading() 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/javadoc.xml",
157 "Writting.StartNoLeading"
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: EndNoLeading
171  * Sub Test: Writting
172  * Author: ehucka
173  * Version: 1.2
174  * Comment:
175  */

176
177 public void testEndNoLeading() 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/javadoc.xml",
182 "Writting.EndNoLeading"
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: ReformattingLeadingStar
196  * Sub Test: Reformatting
197  * Author: ehucka
198  * Version: 1.2
199  * Comment:
200  */

201
202 public void testReformattingLeadingStar() 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/javadoc.xml",
207 "Reformatting.ReformattingLeadingStar"
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: ReformatingNoLeadingStar
221  * Sub Test: Reformatting
222  * Author: ehucka
223  * Version: 1.2
224  * Comment:
225  */

226
227 public void testReformatingNoLeadingStar() 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/javadoc.xml",
232 "Reformatting.ReformatingNoLeadingStar"
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
Popular Tags