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.stateless.AnnotatedSetterInjectionStatelessPojoLocalHomeIntfcTests;
21: import org.apache.openejb.test.FilteredTestSuite;
22:
23: /**
24: * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
25: * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
26: * @version $Rev: 606348 $ $Date: 2007-12-21 15:57:58 -0800 $
27: */
28: public class StatefulLocalTestSuite extends junit.framework.TestCase {
29:
30: public StatefulLocalTestSuite(String name) {
31: super (name);
32: }
33:
34: public static Test suite() {
35: TestSuite suite = new FilteredTestSuite();
36: suite.addTest(new StatefulJndiTests());
37: suite.addTest(new StatefulPojoLocalJndiTests());
38: suite.addTest(new StatefulHomeIntfcTests());
39: suite.addTest(new StatefulPojoLocalHomeIntfcTests());
40: suite.addTest(new StatefulPojoLocalIntfcTests());
41: suite.addTest(new StatefulLocalBusinessIntfcTests());
42: // MNour: Why we put this remote test into the suite for local tests ???
43: suite.addTest(new StatefulRemoteBusinessIntfcTests());
44: suite.addTest(new StatefulEjbHomeTests());
45: suite.addTest(new StatefulPojoEjbLocalHomeTests());
46: suite.addTest(new StatefulEjbObjectTests());
47: suite.addTest(new StatefulPojoEjbLocalObjectTests());
48: suite.addTest(new StatefulRemoteIntfcTests());
49: suite.addTest(new StatefulHomeHandleTests());
50: suite.addTest(new StatefulHandleTests());
51: suite.addTest(new StatefulEjbMetaDataTests());
52: suite.addTest(new StatefulBeanTxTests());
53: // suite.addTest(new StatefulAllowedOperationsTests());
54: // suite.addTest(new BMTStatefulAllowedOperationsTests());
55: suite.addTest(new StatefulJndiEncTests());
56: suite.addTest(new StatefulContextLookupTests());
57: suite.addTest(new StatefulPojoContextLookupTests());
58: suite.addTest(new StatefulFieldInjectionTests());
59: suite.addTest(new StatefulSetterInjectionTests());
60: // suite.addTest(new StatefulPersistenceContextTests());
61: suite.addTest(new StatefulRmiIiopTests());
62: //suite.addTest(new StatefulInterceptorTests());
63: suite.addTest(new StatefulDefaultInterceptorTests());
64:
65: /*///////////////////////////
66: * Annotated test clients
67: *///////////////////////////
68: // Annotated field injection test clients
69: suite
70: .addTest(new AnnotatedFieldInjectionStatefulPojoLocalHomeIntfcTests());
71:
72: // Annotated setter injection test clients
73: suite
74: .addTest(new AnnotatedSetterInjectionStatelessPojoLocalHomeIntfcTests());
75:
76: /* TO DO
77: suite.addTest(new StatefulEjbContextTests());
78: suite.addTest(new BMTStatefulEjbContextTests());
79: suite.addTest(new BMTStatefulEncTests());
80: suite.addTest(new StatefulContainerManagedTransactionTests());
81: */
82:
83: return suite;
84: }
85:
86: }
|