01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package test.implementation;
23:
24: import junit.framework.Test;
25: import junit.framework.TestSuite;
26:
27: /**
28: * Test suites under <tt>test.implementation</tt> are used
29: * to test internal JBossMX implementation and additional
30: * functionality not covered in the JMX spec.
31: *
32: * This suite should be run with the compliance test suite
33: * (see <tt>test.compliance</tt> package) whenever new
34: * features are being added.
35: *
36: * @see test.compliance.ComplianceSUITE
37: *
38: * @author <a href="mailto:juha@jboss.org">Juha Lindfors</a>.
39: */
40:
41: public class ImplementationSUITE extends TestSuite {
42: public static void main(String[] args) {
43: junit.textui.TestRunner.run(suite());
44:
45: if (System.getProperty("force.jvm.exit") != null
46: && System.getProperty("force.jvm.exit")
47: .equalsIgnoreCase("true"))
48: System.exit(0);
49: }
50:
51: public static Test suite() {
52: TestSuite suite = new TestSuite(
53: "All JBossMX Implementation Tests");
54:
55: suite.addTest(test.implementation.util.UtilSUITE.suite());
56: suite.addTest(test.implementation.persistence.PersistenceSUITE
57: .suite());
58: suite.addTest(test.implementation.loading.LoadingSUITE.suite());
59: suite.addTest(test.implementation.server.ServerSUITE.suite());
60: suite.addTest(test.implementation.registry.RegistrySUITE
61: .suite());
62: suite.addTest(test.implementation.modelmbean.ModelMBeanSUITE
63: .suite());
64: suite.addTest(test.implementation.interceptor.InterceptorSUITE
65: .suite());
66: suite
67: .addTest(test.implementation.notification.NotificationSUITE
68: .suite());
69:
70: return suite;
71: }
72: }
|