01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.test;
17:
18: import junit.framework.TestSuite;
19:
20: import org.apache.openejb.test.entity.bmp.BmpTestSuite;
21: import org.apache.openejb.test.entity.cmp.CmpTestSuite;
22: import org.apache.openejb.test.entity.cmp2.Cmp2TestSuite;
23: import org.apache.openejb.test.stateful.StatefulTestSuite;
24: import org.apache.openejb.test.stateless.StatelessTestSuite;
25: import org.apache.openejb.test.mdb.MdbTestSuite;
26: import org.apache.openejb.test.servlet.ServletTestSuite;
27:
28: /**
29: *
30: * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
31: * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
32: */
33: public class ClientTestSuite extends junit.framework.TestCase {
34:
35: public ClientTestSuite(String name) {
36: super (name);
37: }
38:
39: public static junit.framework.Test suite() {
40: TestSuite suite = new TestSuite();
41: if (Boolean.getBoolean("openejb.test.servlets")) {
42: suite.addTest(ServletTestSuite.suite());
43: }
44: suite.addTest(StatelessTestSuite.suite());
45: suite.addTest(StatefulTestSuite.suite());
46: suite.addTest(BmpTestSuite.suite());
47: suite.addTest(CmpTestSuite.suite());
48: suite.addTest(Cmp2TestSuite.suite());
49: suite.addTest(MdbTestSuite.suite());
50: return suite;
51: }
52: }
|