1   /*
2    * Copyright 2005-2006 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.apache.commons.scxml;
17  
18  import junit.framework.Test;
19  import junit.framework.TestCase;
20  import junit.framework.TestSuite;
21  import junit.textui.TestRunner;
22  
23  import org.apache.commons.scxml.env.EnvTestSuite;
24  import org.apache.commons.scxml.env.faces.EnvFacesTestSuite;
25  import org.apache.commons.scxml.env.jexl.EnvJexlTestSuite;
26  import org.apache.commons.scxml.env.jsp.EnvJspTestSuite;
27  import org.apache.commons.scxml.env.servlet.EnvServletTestSuite;
28  import org.apache.commons.scxml.invoke.InvokeTestSuite;
29  import org.apache.commons.scxml.io.IOTestSuite;
30  import org.apache.commons.scxml.model.ModelTestSuite;
31  import org.apache.commons.scxml.semantics.SemanticsTestSuite;
32  import org.apache.commons.scxml.test.TestingTestSuite;
33  
34  /***
35   * Test suite for [SCXML].
36   *
37   * Organization adapted from test suite for [lang].
38   */
39  public class AllSCXMLTestSuite extends TestCase {
40      
41      /***
42       * Construct a new instance.
43       */
44      public AllSCXMLTestSuite(String name) {
45          super(name);
46      }
47  
48      /***
49       * Command-line interface.
50       */
51      public static void main(String[] args) {
52          TestRunner.run(suite());
53      }
54  
55      /***
56       * Get the suite of tests
57       */
58      public static Test suite() {
59          TestSuite suite = new TestSuite();
60          suite.setName("Commons-SCXML (all) Tests");
61          suite.addTest(EnvFacesTestSuite.suite());
62          suite.addTest(EnvJexlTestSuite.suite());
63          suite.addTest(EnvJspTestSuite.suite());
64          suite.addTest(EnvServletTestSuite.suite());
65          suite.addTest(EnvTestSuite.suite());
66          suite.addTest(InvokeTestSuite.suite());
67          suite.addTest(IOTestSuite.suite());
68          suite.addTest(ModelTestSuite.suite());
69          suite.addTest(SCXMLTestSuite.suite());
70          suite.addTest(SemanticsTestSuite.suite());
71          suite.addTest(TestingTestSuite.suite());
72          return suite;
73      }
74  }