KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jonasadmin > test > suite > C_JonasAdmin


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999-2005 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or 1any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: C_JonasAdmin.java,v 1.1 2005/07/11 16:01:34 kemlerp Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.jonasadmin.test.suite;
27
28 import org.objectweb.jonas.jonasadmin.test.catalina.C_JonasAdminCatalina;
29 import org.objectweb.jonas.jonasadmin.test.deploy.C_JonasAdminDeploy;
30 import org.objectweb.jonas.jonasadmin.test.domain.C_JonasAdminDomain;
31 import org.objectweb.jonas.jonasadmin.test.jonasserver.C_JonasAdminJonasserver;
32 import org.objectweb.jonas.jonasadmin.test.joram.C_JonasAdminJoram;
33 import org.objectweb.jonas.jonasadmin.test.logging.C_JonasAdminLogging;
34 import org.objectweb.jonas.jonasadmin.test.monitoring.C_JonasAdminMonitoring;
35 import org.objectweb.jonas.jonasadmin.test.navigation.C_JonasAdminNavigation;
36 import org.objectweb.jonas.jonasadmin.test.service.container.C_JonasAdminContainer;
37 import org.objectweb.jonas.jonasadmin.test.util.JonasAdminTestCase;
38
39 import com.meterware.httpunit.WebConversation;
40
41 import junit.framework.Test;
42 import junit.framework.TestSuite;
43
44 /**
45  * Define a class to test jonasAdmin
46  * Test : - catalina
47  * - deploy
48  * - domain
49  * - jonasserver
50  * - joram
51  * - logging
52  * - monitoring
53  * - 'navigation'
54  * - service/container
55  * @author Paul Kemler
56  */

57 public class C_JonasAdmin extends JonasAdminTestCase {
58
59     /**
60      * Constructor with a specified name
61      * @param name the name
62      */

63     public C_JonasAdmin(String JavaDoc name) {
64         super(name);
65     }
66
67     /**
68      * Get a new TestSuite for this class
69      * It includes all jonasAdmin tests
70      * @return a new TestSuite for this class
71      */

72     public static Test suite() {
73         WebConversation wc = new WebConversation();
74
75         TestSuite suite = new TestSuite();
76         suite.addTest(C_JonasAdminCatalina.suite(wc));
77         suite.addTest(C_JonasAdminDeploy.suite());
78         suite.addTest(C_JonasAdminDomain.suite(wc));
79         suite.addTest(C_JonasAdminJonasserver.suite(wc));
80         suite.addTest(C_JonasAdminJoram.suite(wc));
81         suite.addTest(C_JonasAdminLogging.suite(wc));
82         suite.addTest(C_JonasAdminMonitoring.suite(wc));
83         suite.addTest(C_JonasAdminNavigation.suite(wc));
84         suite.addTest(C_JonasAdminContainer.suite(wc));
85         return suite;
86     }
87
88     /**
89      * Main method
90      * @param args the arguments
91      */

92     public static void main (String JavaDoc[] args) {
93         junit.textui.TestRunner.run(suite());
94     }
95 }
96
Popular Tags