Source Code Cross Referenced for TestUtilities.java in  » Parser » JTopas » de » susebox » 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 » Parser » JTopas » de.susebox 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * TestUtilities.java: utility methods for JUnit tests
03:         *
04:         * Copyright (C) 2002 Heiko Blau
05:         *
06:         * This file belongs to the Susebox Java core test suite.
07:         * The Susebox Java core test suite is free software; you can redistribute it 
08:         * and/or modify it under the terms of the GNU Lesser General Public License as 
09:         * published by the Free Software Foundation; either version 2.1 of the License, 
10:         * or (at your option) any later version.
11:         *
12:         * This software is distributed in the hope that it will be useful, but WITHOUT
13:         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
14:         * FITNESS FOR A PARTICULAR PURPOSE. 
15:         * See the GNU Lesser General Public License for more details.
16:         *
17:         * You should have received a copy of the GNU Lesser General Public License along 
18:         * with the Susebox Java core test suite. If not, write to the
19:         *
20:         *   Free Software Foundation, Inc.
21:         *   59 Temple Place, Suite 330, 
22:         *   Boston, MA 02111-1307 
23:         *   USA
24:         *
25:         * or check the Internet: http://www.fsf.org
26:         *
27:         * The Susebox Java core test suite uses the test framework JUnit by Kent Beck 
28:         * and Erich Gamma. You should have received a copy of their JUnit licence 
29:         * agreement along with the Susebox Java test suite.
30:         *
31:         * We do NOT provide the JUnit archive junit.jar nessecary to compile and run 
32:         * our tests, since we assume, that You  either have it already or would like 
33:         * to get the current release Yourself. 
34:         * Please visit either:
35:         *   http://sourceforge.net/projects/junit
36:         * or
37:         *   http://junit.org
38:         * to obtain JUnit.
39:         *
40:         * Contact:
41:         *   email: heiko@susebox.de 
42:         */
43:
44:        package de.susebox;
45:
46:        //-----------------------------------------------------------------------------
47:        // Imports
48:        //
49:
50:        //-----------------------------------------------------------------------------
51:        // Class TestUtilities
52:        //
53:
54:        /**<p>
55:         * This class is a generic test for implementations of the {@link ThrowableList}
56:         * interface. Instead of testing each implementation by its own, the common
57:         * pattern of all these exceptions is used to define tests on all of them.
58:         *</p>
59:         *
60:         * @see     ThrowableList
61:         * @author  Heiko Blau
62:         */
63:        public class TestUtilities {
64:
65:            /**
66:             * The method looks for an explicitely given TestRunner type in the first
67:             * element of the given argument array. Valid values are:
68:             *<ul><li>
69:             *  swingui:  use the class {@link junit.swingui.TestRunner}
70:             *</li><li>
71:             *  awtui:  use the class {@link junit.awtui.TestRunner}
72:             *</li><li>
73:             *  textui:  use the class {@link junit.textui.TestRunner}
74:             *</li></ul>
75:             * If no type is given the method will use an {@link junit.textui.TestRunner}
76:             * instance.
77:             *
78:             * @param tests an array containing the test classes to run
79:             * @param args  the command line arguments
80:             */
81:            public static void run(String[] tests, String[] args) {
82:                if (args != null && args.length > 0) {
83:                    if (args[0].equals("swingui")) {
84:                        new junit.swingui.TestRunner().main(tests);
85:                    } else if (args[0].equals("awtui")) {
86:                        new junit.awtui.TestRunner().main(tests);
87:                    } else {
88:                        new junit.textui.TestRunner().main(tests);
89:                    }
90:                } else {
91:                    new junit.textui.TestRunner().main(tests);
92:                }
93:            }
94:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.