001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.test.stateless;
017:
018: import junit.framework.TestSuite;
019: import org.apache.openejb.test.FilteredTestSuite;
020:
021: /**
022: * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
023: * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
024: * @version $Rev: 606348 $ $Date: 2007-12-21 15:57:58 -0800 $
025: */
026: public class StatelessTestSuite extends junit.framework.TestCase {
027:
028: public StatelessTestSuite(String name) {
029: super (name);
030: }
031:
032: public static junit.framework.Test suite() {
033: TestSuite suite = new FilteredTestSuite();
034: suite.addTest(new StatelessJndiTests());
035: suite.addTest(new StatelessPojoRemoteJndiTests());
036:
037: // Test home interfaces
038: suite.addTest(new StatelessHomeIntfcTests());
039: suite.addTest(new StatelessPojoHomeIntfcTests());
040:
041: // EJBHome tests
042: suite.addTest(new StatelessEjbHomeTests());
043: suite.addTest(new StatelessPojoEjbHomeTests());
044:
045: // EJBObject tests
046: suite.addTest(new StatelessEjbObjectTests());
047: suite.addTest(new StatelessPojoEjbObjectTests());
048:
049: // Remote/business interface tests
050: suite.addTest(new StatelessRemoteIntfcTests());
051: suite.addTest(new StatelessPojoRemoteIntrfcTests());
052: suite.addTest(new StatelessRemoteBusinessIntfcTests());
053:
054: // Home handle tests
055: suite.addTest(new StatelessHomeHandleTests());
056: suite.addTest(new StatelessPojoHomeHandleTests());
057:
058: // Handle tests
059: suite.addTest(new StatelessHandleTests());
060: suite.addTest(new StatelessPojoHandleTests());
061:
062: // EJBMetaData tests
063: suite.addTest(new StatelessEjbMetaDataTests());
064: suite.addTest(new StatelessPojoEjbMetaDataTests());
065:
066: // Allowed operations
067: suite.addTest(new StatelessAllowedOperationsTests());
068: suite.addTest(new BMTStatelessAllowedOperationsTests());
069:
070: suite.addTest(new StatelessBeanTxTests());
071:
072: // ENC and Injection
073: suite.addTest(new StatelessJndiEncTests());
074: suite.addTest(new StatelessContextLookupTests());
075: suite.addTest(new StatelessPojoContextLookupTests());
076: suite.addTest(new StatelessFieldInjectionTests());
077: suite.addTest(new StatelessSetterInjectionTests());
078: suite.addTest(new StatelessAnnotatedFieldInjectionTests());
079:
080: suite.addTest(new StatelessRmiIiopTests());
081:
082: suite.addTest(new MiscEjbTests());
083:
084: /*///////////////////////////
085: * Annotated test clients
086: *///////////////////////////
087: // Annotated field injection test clients
088: suite
089: .addTest(new AnnotatedFieldInjectionStatelessPojoHomeIntfcTests());
090:
091: // Annotated setter injection test clients
092: suite
093: .addTest(new AnnotatedSetterInjectionStatelessPojoHomeIntfcTests());
094:
095: /* TO DO
096: suite.addTest(new StatelessEjbContextTests());
097: suite.addTest(new BMTStatelessEjbContextTests());
098: suite.addTest(new BMTStatelessEncTests());
099: suite.addTest(new StatelessContainerManagedTransactionTests());
100: */
101: return suite;
102: }
103: }
|