Source Code Cross Referenced for AutoDocLogUTestI.java in  » Test-Coverage » GroboUtils » net » sourceforge » groboutils » autodoc » v1 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Test Coverage » GroboUtils » net.sourceforge.groboutils.autodoc.v1 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * @(#)AutoDocLogUTestI.java
003:         *
004:         * Copyright (C) 2002-2003 Matt Albrecht
005:         * groboclown@users.sourceforge.net
006:         * http://groboutils.sourceforge.net
007:         *
008:         *  Permission is hereby granted, free of charge, to any person obtaining a
009:         *  copy of this software and associated documentation files (the "Software"),
010:         *  to deal in the Software without restriction, including without limitation
011:         *  the rights to use, copy, modify, merge, publish, distribute, sublicense,
012:         *  and/or sell copies of the Software, and to permit persons to whom the 
013:         *  Software is furnished to do so, subject to the following conditions:
014:         *
015:         *  The above copyright notice and this permission notice shall be included in 
016:         *  all copies or substantial portions of the Software. 
017:         *
018:         *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
019:         *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
020:         *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL 
021:         *  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
022:         *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
023:         *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
024:         *  DEALINGS IN THE SOFTWARE.
025:         */
026:
027:        package net.sourceforge.groboutils.autodoc.v1;
028:
029:        //import net.sourceforge.groboutils.testing.junitlog.v1.*;
030:        import org.easymock.EasyMock;
031:        import org.easymock.MockControl;
032:        import net.sourceforge.groboutils.junit.v1.iftc.*;
033:        import junit.framework.Test;
034:        import junit.framework.TestCase;
035:        import junit.framework.TestSuite;
036:
037:        /**
038:         * Tests the AutoDocLog interface.
039:         *
040:         * @author    Matt Albrecht <a href="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
041:         * @version   $Date: 2003/02/10 22:52:14 $
042:         * @since     March 27, 2002
043:         */
044:        public class AutoDocLogUTestI extends InterfaceTestCase {
045:            //-------------------------------------------------------------------------
046:            // Standard JUnit Class-specific declarations
047:
048:            private static final Class THIS_CLASS = AutoDocLogUTestI.class;
049:
050:            //    private static final IJUnitDocumentor LOG = (new JUnitLog(THIS_CLASS)).getDocumentor();
051:
052:            public AutoDocLogUTestI(String name, ImplFactory f) {
053:                super (name, AutoDocLog.class, f);
054:            }
055:
056:            public AutoDocLog createAutoDocLog() {
057:                return (AutoDocLog) createImplObject();
058:            }
059:
060:            //-------------------------------------------------------------------------
061:            // Tests
062:
063:            public void testDebug1() {
064:                createAutoDocLog().debug((Object) null);
065:            }
066:
067:            public void testDebug2() {
068:                createAutoDocLog().debug("test message");
069:            }
070:
071:            public void testDebug3() {
072:                createAutoDocLog().debug((Object[]) null);
073:            }
074:
075:            public void testDebug4() {
076:                createAutoDocLog().debug(new Object[2]);
077:            }
078:
079:            public void testDebug4a() {
080:                createAutoDocLog().debug(new Object[0]);
081:            }
082:
083:            public void testDebug5() {
084:                createAutoDocLog().debug(
085:                        new Object[] { "a", null, new Integer(1) });
086:            }
087:
088:            public void testDebug5a() {
089:                createAutoDocLog().debug(
090:                        new Object[] { "a", "b", new Integer(1) });
091:            }
092:
093:            public void testDebug6() {
094:                createAutoDocLog().debug((Object) null, null);
095:            }
096:
097:            public void testDebug7() {
098:                createAutoDocLog()
099:                        .debug((Object) null, new Throwable("ignore"));
100:            }
101:
102:            public void testDebug8() {
103:                createAutoDocLog().debug(new Object(), null);
104:            }
105:
106:            public void testDebug9() {
107:                createAutoDocLog().debug(new Object(), new Throwable("ignore"));
108:            }
109:
110:            public void testDebug10() {
111:                createAutoDocLog().debug((Object[]) null, null);
112:            }
113:
114:            public void testDebug11() {
115:                createAutoDocLog().debug(new Object[2], null);
116:            }
117:
118:            public void testDebug12() {
119:                createAutoDocLog().debug(new Object[0], null);
120:            }
121:
122:            public void testDebug13() {
123:                createAutoDocLog().debug(new Object[] { "a", null, "b" }, null);
124:            }
125:
126:            public void testDebug13a() {
127:                createAutoDocLog().debug(new Object[] { "a", "b" }, null);
128:            }
129:
130:            public void testDebug14() {
131:                createAutoDocLog().debug((Object[]) null,
132:                        new Throwable("ignore"));
133:            }
134:
135:            public void testDebug15() {
136:                createAutoDocLog()
137:                        .debug(new Object[2], new Throwable("ignore"));
138:            }
139:
140:            public void testDebug16() {
141:                createAutoDocLog()
142:                        .debug(new Object[0], new Throwable("ignore"));
143:            }
144:
145:            public void testDebug17() {
146:                createAutoDocLog().debug(new Object[] { "a", null, "b" },
147:                        new Throwable("ignore"));
148:            }
149:
150:            public void testDebug18() {
151:                createAutoDocLog().debug(new Object[] { "a", "b" },
152:                        new Throwable("ignore"));
153:            }
154:
155:            //-------------------------------------------------------------------------
156:
157:            public void testInfo1() {
158:                createAutoDocLog().info((Object) null);
159:            }
160:
161:            public void testInfo2() {
162:                createAutoDocLog().info("test message");
163:            }
164:
165:            public void testInfo3() {
166:                createAutoDocLog().info((Object[]) null);
167:            }
168:
169:            public void testInfo4() {
170:                createAutoDocLog().info(new Object[2]);
171:            }
172:
173:            public void testInfo5() {
174:                createAutoDocLog().info(new Object[0]);
175:            }
176:
177:            public void testInfo6() {
178:                createAutoDocLog().info(
179:                        new Object[] { "a", null, new Integer(1) });
180:            }
181:
182:            public void testInfo7() {
183:                createAutoDocLog().info(
184:                        new Object[] { "a", "b", new Integer(1) });
185:            }
186:
187:            public void testInfo8() {
188:                createAutoDocLog().info((Object) null, null);
189:            }
190:
191:            public void testInfo9() {
192:                createAutoDocLog().info((Object) null, new Throwable("ignore"));
193:            }
194:
195:            public void testInfo10() {
196:                createAutoDocLog().info(new Object(), null);
197:            }
198:
199:            public void testInfo11() {
200:                createAutoDocLog().info(new Object(), new Throwable("ignore"));
201:            }
202:
203:            public void testInfo12() {
204:                createAutoDocLog().info((Object[]) null, null);
205:            }
206:
207:            public void testInfo13() {
208:                createAutoDocLog().info(new Object[2], null);
209:            }
210:
211:            public void testInfo14() {
212:                createAutoDocLog().info(new Object[0], null);
213:            }
214:
215:            public void testInfo15() {
216:                createAutoDocLog().info(new Object[] { "a", null, "b" }, null);
217:            }
218:
219:            public void testInfo16() {
220:                createAutoDocLog().info(new Object[] { "a", "b" }, null);
221:            }
222:
223:            public void testInfo17() {
224:                createAutoDocLog().info((Object[]) null,
225:                        new Throwable("ignore"));
226:            }
227:
228:            public void testInfo18() {
229:                createAutoDocLog().info(new Object[2], new Throwable("ignore"));
230:            }
231:
232:            public void testInfo19() {
233:                createAutoDocLog().info(new Object[0], new Throwable("ignore"));
234:            }
235:
236:            public void testInfo20() {
237:                createAutoDocLog().info(new Object[] { "a", null, "b" },
238:                        new Throwable("ignore"));
239:            }
240:
241:            public void testInfo21() {
242:                createAutoDocLog().info(new Object[] { "a", "b" },
243:                        new Throwable("ignore"));
244:            }
245:
246:            //-------------------------------------------------------------------------
247:
248:            public void testWarn1() {
249:                createAutoDocLog().warn((Object) null);
250:            }
251:
252:            public void testWarn2() {
253:                createAutoDocLog().warn("test message");
254:            }
255:
256:            public void testWarn3() {
257:                createAutoDocLog().warn((Object[]) null);
258:            }
259:
260:            public void testWarn4() {
261:                createAutoDocLog().warn(new Object[2]);
262:            }
263:
264:            public void testWarn5() {
265:                createAutoDocLog().warn(new Object[0]);
266:            }
267:
268:            public void testWarn6() {
269:                createAutoDocLog().warn(
270:                        new Object[] { "a", null, new Integer(1) });
271:            }
272:
273:            public void testWarn7() {
274:                createAutoDocLog().warn(
275:                        new Object[] { "a", "b", new Integer(1) });
276:            }
277:
278:            public void testWarn8() {
279:                createAutoDocLog().warn((Object) null, null);
280:            }
281:
282:            public void testWarn9() {
283:                createAutoDocLog().warn((Object) null, new Throwable("ignore"));
284:            }
285:
286:            public void testWarn10() {
287:                createAutoDocLog().warn(new Object(), null);
288:            }
289:
290:            public void testWarn11() {
291:                createAutoDocLog().warn(new Object(), new Throwable("ignore"));
292:            }
293:
294:            public void testWarn12() {
295:                createAutoDocLog().warn((Object[]) null, null);
296:            }
297:
298:            public void testWarn13() {
299:                createAutoDocLog().warn(new Object[2], null);
300:            }
301:
302:            public void testWarn14() {
303:                createAutoDocLog().warn(new Object[0], null);
304:            }
305:
306:            public void testWarn15() {
307:                createAutoDocLog().warn(new Object[] { "a", null, "b" }, null);
308:            }
309:
310:            public void testWarn16() {
311:                createAutoDocLog().warn(new Object[] { "a", "b" }, null);
312:            }
313:
314:            public void testWarn17() {
315:                createAutoDocLog().warn((Object[]) null,
316:                        new Throwable("ignore"));
317:            }
318:
319:            public void testWarn18() {
320:                createAutoDocLog().warn(new Object[2], new Throwable("ignore"));
321:            }
322:
323:            public void testWarn19() {
324:                createAutoDocLog().warn(new Object[0], new Throwable("ignore"));
325:            }
326:
327:            public void testWarn20() {
328:                createAutoDocLog().warn(new Object[] { "a", null, "b" },
329:                        new Throwable("ignore"));
330:            }
331:
332:            public void testWarn21() {
333:                createAutoDocLog().warn(new Object[] { "a", "b" },
334:                        new Throwable("ignore"));
335:            }
336:
337:            //-------------------------------------------------------------------------
338:            // Standard JUnit declarations
339:
340:            public static InterfaceTestSuite suite() {
341:                InterfaceTestSuite suite = new InterfaceTestSuite(THIS_CLASS);
342:
343:                return suite;
344:            }
345:
346:            public static void main(String[] args) {
347:                String[] name = { THIS_CLASS.getName() };
348:
349:                // junit.textui.TestRunner.main( name );
350:                // junit.swingui.TestRunner.main( name );
351:
352:                junit.textui.TestRunner.main(name);
353:            }
354:
355:            /**
356:             * 
357:             * @exception Exception thrown under any exceptional condition.
358:             */
359:            protected void setUp() throws Exception {
360:                super .setUp();
361:
362:                // set ourself up
363:            }
364:
365:            /**
366:             * 
367:             * @exception Exception thrown under any exceptional condition.
368:             */
369:            protected void tearDown() throws Exception {
370:                // tear ourself down
371:
372:                super.tearDown();
373:            }
374:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.