01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999-2005 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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_suite.java 10557 2007-06-07 09:21:44Z coqp $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.examples.clients.suite;
25:
26: import junit.framework.Test;
27: import junit.framework.TestSuite;
28:
29: import org.objectweb.jonas.examples.clients.alarm.C_alarm;
30: import org.objectweb.jonas.examples.clients.cmp2.C_cmp2;
31: import org.objectweb.jonas.examples.clients.earsample.C_earsample;
32: import org.objectweb.jonas.examples.clients.eb.C_eb;
33: import org.objectweb.jonas.examples.clients.hibernate.C_hibernate;
34: import org.objectweb.jonas.examples.clients.j2eemanagement.C_j2eemanagement;
35: import org.objectweb.jonas.examples.clients.lb.C_lb;
36: import org.objectweb.jonas.examples.clients.mailsb.C_mailsb;
37: import org.objectweb.jonas.examples.clients.mdb.C_mdb;
38: import org.objectweb.jonas.examples.clients.olstore.C_olstore;
39: import org.objectweb.jonas.examples.clients.petstore.C_petstore;
40: import org.objectweb.jonas.examples.clients.sb.C_sb;
41: import org.objectweb.jonas.examples.clients.webservices.C_webservices;
42: import org.objectweb.jonas.examples.util.JExampleTestCase;
43:
44: /**
45: * Define a class to test all the examples
46: *
47: * @author Florent Benoit
48: */
49: public class C_suite extends JExampleTestCase {
50:
51: /**
52: * Constructor with a specified name
53: * @param name the name
54: */
55: public C_suite(String name) {
56: super (name);
57: }
58:
59: /**
60: * Get a new TestSuite for this class
61: * It includes earsample, alarm and jonasAdmin
62: * @return a new TestSuite for this class
63: */
64: public static Test suite() {
65: TestSuite suite = new TestSuite();
66: suite.addTest(C_earsample.suite());
67: suite.addTest(C_alarm.suite());
68: suite.addTest(C_cmp2.suite());
69: suite.addTest(C_eb.suite());
70: suite.addTest(C_hibernate.suite());
71: suite.addTest(C_j2eemanagement.suite());
72: suite.addTest(C_lb.suite());
73: suite.addTest(C_mailsb.suite());
74: suite.addTest(C_olstore.suite());
75: /*suite.addTest(C_petstore.suite()); */
76: suite.addTest(C_sb.suite());
77: suite.addTest(C_webservices.suite());
78: suite.addTest(C_mdb.suite());
79:
80: return suite;
81: }
82:
83: /**
84: * Main method
85: * @param args the arguments
86: */
87: public static void main(String[] args) {
88: junit.textui.TestRunner.run(suite());
89: }
90: }
|