KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)AutoDocITUTestI.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 AutoDocIT interface.
40  *
41  * @author Matt Albrecht <a HREF="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
42  * @since March 27, 2002
43  * @version $Date: 2003/02/10 22:52:14 $
44  */

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

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

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

68     public void testTestsIssueSL1()
69     {
70         AutoDocIT it = createAutoDocIT();
71         it.testsIssue( null, 0L );
72     }
73     
74     public void testTestsIssueSL2()
75     {
76         AutoDocIT it = createAutoDocIT();
77         it.testsIssue( "", -1L );
78     }
79     
80     public void testTestsIssueSL3()
81     {
82         AutoDocIT it = createAutoDocIT();
83         it.testsIssue( "blah", 1000L );
84     }
85     
86     public void testTestsIssueSL4()
87     {
88         AutoDocIT it = createAutoDocIT();
89         it.testsIssue( "blah", Long.MIN_VALUE );
90     }
91     
92     public void testTestsIssueSL5()
93     {
94         AutoDocIT it = createAutoDocIT();
95         it.testsIssue( "blah", Long.MAX_VALUE );
96     }
97     
98     
99     public void testTestsIssueSS1()
100     {
101         AutoDocIT it = createAutoDocIT();
102         it.testsIssue( null, null );
103     }
104     
105     public void testTestsIssueSS2()
106     {
107         AutoDocIT it = createAutoDocIT();
108         it.testsIssue( "a", null );
109     }
110     
111     public void testTestsIssueSS3()
112     {
113         AutoDocIT it = createAutoDocIT();
114         it.testsIssue( null, "a" );
115     }
116     
117     public void testTestsIssueSS4()
118     {
119         AutoDocIT it = createAutoDocIT();
120         it.testsIssue( "", "" );
121     }
122     
123     public void testTestsIssueSS5()
124     {
125         AutoDocIT it = createAutoDocIT();
126         it.testsIssue( "blah", "asdf" );
127     }
128     
129     
130     
131     public void testTestsIssueL1()
132     {
133         AutoDocIT it = createAutoDocIT();
134         it.testsIssue( -1L );
135     }
136     
137     public void testTestsIssueL2()
138     {
139         AutoDocIT it = createAutoDocIT();
140         it.testsIssue( 0L );
141     }
142     
143     public void testTestsIssueL3()
144     {
145         AutoDocIT it = createAutoDocIT();
146         it.testsIssue( Long.MAX_VALUE );
147     }
148     
149     public void testTestsIssueL4()
150     {
151         AutoDocIT it = createAutoDocIT();
152         it.testsIssue( Long.MIN_VALUE );
153     }
154     
155     public void testTestsIssueL5()
156     {
157         AutoDocIT it = createAutoDocIT();
158         it.testsIssue( 10000L );
159     }
160     
161     
162     public void testTestsIssueS1()
163     {
164         AutoDocIT it = createAutoDocIT();
165         it.testsIssue( null );
166     }
167     
168     public void testTestsIssueS2()
169     {
170         AutoDocIT it = createAutoDocIT();
171         it.testsIssue( "" );
172     }
173     
174     public void testTestsIssueS3()
175     {
176         AutoDocIT it = createAutoDocIT();
177         it.testsIssue( " " );
178     }
179     
180     public void testTestsIssueS4()
181     {
182         AutoDocIT it = createAutoDocIT();
183         it.testsIssue( "asdf" );
184     }
185
186
187     
188     public void testMultiTests()
189     {
190         AutoDocIT it = createAutoDocIT();
191         it.testsIssue( "asdf" );
192         it.testsIssue( null );
193         it.testsIssue( "blah", "asdf" );
194         it.testsIssue( -1L );
195         it.testsIssue( "blah", 1000L );
196         it.testsIssue( "asdf" );
197     }
198     
199     
200     
201     //-------------------------------------------------------------------------
202
// Standard JUnit declarations
203

204     
205     public static InterfaceTestSuite suite()
206     {
207         InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS );
208         
209         return suite;
210     }
211     
212     public static void main( String JavaDoc[] args )
213     {
214         String JavaDoc[] name = { THIS_CLASS.getName() };
215         
216         // junit.textui.TestRunner.main( name );
217
// junit.swingui.TestRunner.main( name );
218

219         junit.textui.TestRunner.main( name );
220     }
221     
222     
223     /**
224      *
225      * @exception Exception thrown under any exceptional condition.
226      */

227     protected void setUp() throws Exception JavaDoc
228     {
229         super.setUp();
230         
231         // set ourself up
232
}
233     
234     
235     /**
236      *
237      * @exception Exception thrown under any exceptional condition.
238      */

239     protected void tearDown() throws Exception JavaDoc
240     {
241         // tear ourself down
242

243         
244         super.tearDown();
245     }
246 }
247
248
Popular Tags