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.stateful;
17:
18: import junit.framework.Test;
19: import junit.framework.TestSuite;
20: import org.apache.openejb.test.FilteredTestSuite;
21:
22: /**
23: * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
24: * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
25: */
26: public class StatefulTestSuite extends junit.framework.TestCase {
27:
28: public StatefulTestSuite(String name) {
29: super (name);
30: }
31:
32: public static Test suite() {
33: TestSuite suite = new FilteredTestSuite();
34: suite.addTest(new StatefulJndiTests());
35: suite.addTest(new StatefulPojoRemoteJndiTests());
36: suite.addTest(new StatefulHomeIntfcTests());
37: suite.addTest(new StatefulPojoHomeIntfcTests());
38: suite.addTest(new StatefulRemoteBusinessIntfcTests());
39: suite.addTest(new StatefulEjbHomeTests());
40: suite.addTest(new StatefulPojoEjbHomeTests());
41: suite.addTest(new StatefulEjbObjectTests());
42: suite.addTest(new StatefulPojoEjbObjectTests());
43: suite.addTest(new StatefulRemoteIntfcTests());
44: suite.addTest(new StatefulHomeHandleTests());
45: suite.addTest(new StatefulPojoHomeHandleTests());
46: suite.addTest(new StatefulHandleTests());
47: suite.addTest(new StatefulPojoHandleTests());
48: suite.addTest(new StatefulEjbMetaDataTests());
49: // suite.addTest(new StatefulBeanTxTests());
50: // suite.addTest(new StatefulAllowedOperationsTests());
51: // suite.addTest(new BMTStatefulAllowedOperationsTests());
52: suite.addTest(new StatefulJndiEncTests());
53: suite.addTest(new StatefulContextLookupTests());
54: suite.addTest(new StatefulPojoContextLookupTests());
55: suite.addTest(new StatefulFieldInjectionTests());
56: suite.addTest(new StatefulSetterInjectionTests());
57: // suite.addTest(new StatefulPersistenceContextTests());
58: suite.addTest(new StatefulRmiIiopTests());
59:
60: /*///////////////////////////
61: * Annotated test clients
62: *///////////////////////////
63: // Annotated field injection test clients
64: suite
65: .addTest(new AnnotatedFieldInjectionStatefulPojoHomeIntfcTests());
66:
67: // Annotated setter injection test clients
68: suite
69: .addTest(new AnnotatedSetterInjectionStatefulPojoHomeIntfcTests());
70:
71: /* TO DO
72: suite.addTest(new StatefulEjbContextTests());
73: suite.addTest(new BMTStatefulEjbContextTests());
74: suite.addTest(new BMTStatefulEncTests());
75: suite.addTest(new StatefulContainerManagedTransactionTests());
76: */
77:
78: return suite;
79: }
80:
81: }
|