KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > groboutils > autodoc > v1 > AutoDocLogUTestI


1 /*
2  * @(#)AutoDocLogUTestI.java
3  *
4  * Copyright (C) 2002-2003 Matt Albrecht
5  * groboclown@users.sourceforge.net
6  * http://groboutils.sourceforge.net
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining a
9  * copy of this software and associated documentation files (the "Software"),
10  * to deal in the Software without restriction, including without limitation
11  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12  * and/or sell copies of the Software, and to permit persons to whom the
13  * Software is furnished to do so, subject to the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be included in
16  * all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24  * DEALINGS IN THE SOFTWARE.
25  */

26
27 package net.sourceforge.groboutils.autodoc.v1;
28
29 //import net.sourceforge.groboutils.testing.junitlog.v1.*;
30
import org.easymock.EasyMock;
31 import org.easymock.MockControl;
32 import net.sourceforge.groboutils.junit.v1.iftc.*;
33 import junit.framework.Test;
34 import junit.framework.TestCase;
35 import junit.framework.TestSuite;
36
37
38 /**
39  * Tests the AutoDocLog interface.
40  *
41  * @author Matt Albrecht <a HREF="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
42  * @version $Date: 2003/02/10 22:52:14 $
43  * @since March 27, 2002
44  */

45 public class AutoDocLogUTestI extends InterfaceTestCase
46 {
47     //-------------------------------------------------------------------------
48
// Standard JUnit Class-specific declarations
49

50     private static final Class JavaDoc THIS_CLASS = AutoDocLogUTestI.class;
51 // private static final IJUnitDocumentor LOG = (new JUnitLog(THIS_CLASS)).getDocumentor();
52

53     public AutoDocLogUTestI( String JavaDoc name, ImplFactory f )
54     {
55         super( name, AutoDocLog.class, f );
56     }
57
58     
59     public AutoDocLog createAutoDocLog()
60     {
61         return (AutoDocLog)createImplObject();
62     }
63
64
65     //-------------------------------------------------------------------------
66
// Tests
67

68     public void testDebug1()
69     {
70         createAutoDocLog().debug( (Object JavaDoc)null );
71     }
72     
73     public void testDebug2()
74     {
75         createAutoDocLog().debug( "test message" );
76     }
77     
78     public void testDebug3()
79     {
80         createAutoDocLog().debug( (Object JavaDoc[])null );
81     }
82     
83     public void testDebug4()
84     {
85         createAutoDocLog().debug( new Object JavaDoc[2] );
86     }
87     
88     public void testDebug4a()
89     {
90         createAutoDocLog().debug( new Object JavaDoc[0] );
91     }
92     
93     public void testDebug5()
94     {
95         createAutoDocLog().debug( new Object JavaDoc[] { "a", null, new Integer JavaDoc(1) } );
96     }
97     
98     public void testDebug5a()
99     {
100         createAutoDocLog().debug( new Object JavaDoc[] { "a", "b", new Integer JavaDoc(1) } );
101     }
102     
103     public void testDebug6()
104     {
105         createAutoDocLog().debug( (Object JavaDoc)null, null );
106     }
107     
108     public void testDebug7()
109     {
110         createAutoDocLog().debug( (Object JavaDoc)null, new Throwable JavaDoc("ignore") );
111     }
112     
113     public void testDebug8()
114     {
115         createAutoDocLog().debug( new Object JavaDoc(), null );
116     }
117     
118     public void testDebug9()
119     {
120         createAutoDocLog().debug( new Object JavaDoc(), new Throwable JavaDoc("ignore") );
121     }
122
123     public void testDebug10()
124     {
125         createAutoDocLog().debug( (Object JavaDoc[])null, null );
126     }
127     
128     public void testDebug11()
129     {
130         createAutoDocLog().debug( new Object JavaDoc[2], null );
131     }
132     
133     public void testDebug12()
134     {
135         createAutoDocLog().debug( new Object JavaDoc[0], null );
136     }
137     
138     public void testDebug13()
139     {
140         createAutoDocLog().debug( new Object JavaDoc[] { "a", null, "b" }, null );
141     }
142     
143     public void testDebug13a()
144     {
145         createAutoDocLog().debug( new Object JavaDoc[] { "a", "b" }, null );
146     }
147
148     public void testDebug14()
149     {
150         createAutoDocLog().debug( (Object JavaDoc[])null, new Throwable JavaDoc("ignore") );
151     }
152     
153     public void testDebug15()
154     {
155         createAutoDocLog().debug( new Object JavaDoc[2], new Throwable JavaDoc("ignore") );
156     }
157     
158     public void testDebug16()
159     {
160         createAutoDocLog().debug( new Object JavaDoc[0], new Throwable JavaDoc("ignore") );
161     }
162     
163     public void testDebug17()
164     {
165         createAutoDocLog().debug( new Object JavaDoc[] { "a", null, "b" },
166             new Throwable JavaDoc("ignore") );
167     }
168     
169     public void testDebug18()
170     {
171         createAutoDocLog().debug( new Object JavaDoc[] { "a", "b" },
172             new Throwable JavaDoc("ignore") );
173     }
174     
175     
176     //-------------------------------------------------------------------------
177

178     public void testInfo1()
179     {
180         createAutoDocLog().info( (Object JavaDoc)null );
181     }
182     
183     public void testInfo2()
184     {
185         createAutoDocLog().info( "test message" );
186     }
187     
188     public void testInfo3()
189     {
190         createAutoDocLog().info( (Object JavaDoc[])null );
191     }
192     
193     public void testInfo4()
194     {
195         createAutoDocLog().info( new Object JavaDoc[2] );
196     }
197     
198     public void testInfo5()
199     {
200         createAutoDocLog().info( new Object JavaDoc[0] );
201     }
202     
203     public void testInfo6()
204     {
205         createAutoDocLog().info( new Object JavaDoc[] { "a", null, new Integer JavaDoc(1) } );
206     }
207     
208     public void testInfo7()
209     {
210         createAutoDocLog().info( new Object JavaDoc[] { "a", "b", new Integer JavaDoc(1) } );
211     }
212     
213     public void testInfo8()
214     {
215         createAutoDocLog().info( (Object JavaDoc)null, null );
216     }
217     
218     public void testInfo9()
219     {
220         createAutoDocLog().info( (Object JavaDoc)null, new Throwable JavaDoc("ignore") );
221     }
222     
223     public void testInfo10()
224     {
225         createAutoDocLog().info( new Object JavaDoc(), null );
226     }
227     
228     public void testInfo11()
229     {
230         createAutoDocLog().info( new Object JavaDoc(), new Throwable JavaDoc("ignore") );
231     }
232
233     public void testInfo12()
234     {
235         createAutoDocLog().info( (Object JavaDoc[])null, null );
236     }
237     
238     public void testInfo13()
239     {
240         createAutoDocLog().info( new Object JavaDoc[2], null );
241     }
242     
243     public void testInfo14()
244     {
245         createAutoDocLog().info( new Object JavaDoc[0], null );
246     }
247     
248     public void testInfo15()
249     {
250         createAutoDocLog().info( new Object JavaDoc[] { "a", null, "b" }, null );
251     }
252     
253     public void testInfo16()
254     {
255         createAutoDocLog().info( new Object JavaDoc[] { "a", "b" }, null );
256     }
257
258     public void testInfo17()
259     {
260         createAutoDocLog().info( (Object JavaDoc[])null, new Throwable JavaDoc("ignore") );
261     }
262     
263     public void testInfo18()
264     {
265         createAutoDocLog().info( new Object JavaDoc[2], new Throwable JavaDoc("ignore") );
266     }
267     
268     public void testInfo19()
269     {
270         createAutoDocLog().info( new Object JavaDoc[0], new Throwable JavaDoc("ignore") );
271     }
272     
273     public void testInfo20()
274     {
275         createAutoDocLog().info( new Object JavaDoc[] { "a", null, "b" },
276             new Throwable JavaDoc("ignore") );
277     }
278     
279     public void testInfo21()
280     {
281         createAutoDocLog().info( new Object JavaDoc[] { "a", "b" },
282             new Throwable JavaDoc("ignore") );
283     }
284
285
286     
287     
288     //-------------------------------------------------------------------------
289

290     public void testWarn1()
291     {
292         createAutoDocLog().warn( (Object JavaDoc)null );
293     }
294     
295     public void testWarn2()
296     {
297         createAutoDocLog().warn( "test message" );
298     }
299     
300     public void testWarn3()
301     {
302         createAutoDocLog().warn( (Object JavaDoc[])null );
303     }
304     
305     public void testWarn4()
306     {
307         createAutoDocLog().warn( new Object JavaDoc[2] );
308     }
309     
310     public void testWarn5()
311     {
312         createAutoDocLog().warn( new Object JavaDoc[0] );
313     }
314     
315     public void testWarn6()
316     {
317         createAutoDocLog().warn( new Object JavaDoc[] { "a", null, new Integer JavaDoc(1) } );
318     }
319     
320     public void testWarn7()
321     {
322         createAutoDocLog().warn( new Object JavaDoc[] { "a", "b", new Integer JavaDoc(1) } );
323     }
324     
325     public void testWarn8()
326     {
327         createAutoDocLog().warn( (Object JavaDoc)null, null );
328     }
329     
330     public void testWarn9()
331     {
332         createAutoDocLog().warn( (Object JavaDoc)null, new Throwable JavaDoc("ignore") );
333     }
334     
335     public void testWarn10()
336     {
337         createAutoDocLog().warn( new Object JavaDoc(), null );
338     }
339     
340     public void testWarn11()
341     {
342         createAutoDocLog().warn( new Object JavaDoc(), new Throwable JavaDoc("ignore") );
343     }
344
345     public void testWarn12()
346     {
347         createAutoDocLog().warn( (Object JavaDoc[])null, null );
348     }
349     
350     public void testWarn13()
351     {
352         createAutoDocLog().warn( new Object JavaDoc[2], null );
353     }
354     
355     public void testWarn14()
356     {
357         createAutoDocLog().warn( new Object JavaDoc[0], null );
358     }
359     
360     public void testWarn15()
361     {
362         createAutoDocLog().warn( new Object JavaDoc[] { "a", null, "b" }, null );
363     }
364     
365     public void testWarn16()
366     {
367         createAutoDocLog().warn( new Object JavaDoc[] { "a", "b" }, null );
368     }
369
370     public void testWarn17()
371     {
372         createAutoDocLog().warn( (Object JavaDoc[])null, new Throwable JavaDoc("ignore") );
373     }
374     
375     public void testWarn18()
376     {
377         createAutoDocLog().warn( new Object JavaDoc[2], new Throwable JavaDoc("ignore") );
378     }
379     
380     public void testWarn19()
381     {
382         createAutoDocLog().warn( new Object JavaDoc[0], new Throwable JavaDoc("ignore") );
383     }
384     
385     public void testWarn20()
386     {
387         createAutoDocLog().warn( new Object JavaDoc[] { "a", null, "b" },
388             new Throwable JavaDoc("ignore") );
389     }
390     
391     public void testWarn21()
392     {
393         createAutoDocLog().warn( new Object JavaDoc[] { "a", "b" },
394             new Throwable JavaDoc("ignore") );
395     }
396     
397     
398     
399     //-------------------------------------------------------------------------
400
// Standard JUnit declarations
401

402     
403     public static InterfaceTestSuite suite()
404     {
405         InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS );
406         
407         return suite;
408     }
409     
410     public static void main( String JavaDoc[] args )
411     {
412         String JavaDoc[] name = { THIS_CLASS.getName() };
413         
414         // junit.textui.TestRunner.main( name );
415
// junit.swingui.TestRunner.main( name );
416

417         junit.textui.TestRunner.main( name );
418     }
419     
420     
421     /**
422      *
423      * @exception Exception thrown under any exceptional condition.
424      */

425     protected void setUp() throws Exception JavaDoc
426     {
427         super.setUp();
428         
429         // set ourself up
430
}
431     
432     
433     /**
434      *
435      * @exception Exception thrown under any exceptional condition.
436      */

437     protected void tearDown() throws Exception JavaDoc
438     {
439         // tear ourself down
440

441         
442         super.tearDown();
443     }
444 }
445
446
Popular Tags