KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > se > anatom > ejbca > ra > raadmin > TestRunner


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13
14 package se.anatom.ejbca.ra.raadmin;
15
16 import junit.framework.Test;
17 import junit.framework.TestSuite;
18
19 import org.apache.log4j.BasicConfigurator;
20 import org.apache.log4j.Logger;
21
22
23 /**
24  * Main test class
25  *
26  * @version $Id $
27  */

28 public class TestRunner extends Object JavaDoc {
29     private static Logger log = Logger.getLogger(TestRunner.class);
30
31     /**
32      * Main
33      *
34      * @param args cmd line arge
35      */

36     public static void main(String JavaDoc[] args) {
37         BasicConfigurator.configure();
38         junit.textui.TestRunner.run(suite());
39     }
40
41     /**
42      * Sets up test suite
43      *
44      * @return none
45      */

46     public static Test suite() {
47         log.debug(">suite()");
48
49         TestSuite suite = new TestSuite();
50         suite.addTest(new TestSuite(TestAdminPreference.class));
51         suite.addTest(new TestSuite(TestEndEntityProfile.class));
52         suite.addTest(new TestSuite(TestGlobalConfiguration.class));
53
54         log.debug("<suite()");
55
56         return suite;
57     }
58 }
59
Popular Tags