    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *     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   */
    17  package org.apache.commons.scxml;
    18
    19  import junit.framework.Test;
    20  import junit.framework.TestCase;
    21  import junit.framework.TestSuite;
    22  import junit.textui.TestRunner;
    23
    24  import org.apache.commons.scxml.env.EnvTestSuite;
    25  import org.apache.commons.scxml.env.faces.EnvFacesTestSuite;
    26  import org.apache.commons.scxml.env.jexl.EnvJexlTestSuite;
    27  import org.apache.commons.scxml.env.jsp.EnvJspTestSuite;
    28  import org.apache.commons.scxml.env.servlet.EnvServletTestSuite;
    29  import org.apache.commons.scxml.invoke.InvokeTestSuite;
    30  import org.apache.commons.scxml.io.IOTestSuite;
    31  import org.apache.commons.scxml.model.ModelTestSuite;
    32  import org.apache.commons.scxml.semantics.SemanticsTestSuite;
    33  import org.apache.commons.scxml.test.TestingTestSuite;
    34
    35  /***
    36   * Test suite for [SCXML].
    37   *
    38   * Organization adapted from test suite for [lang].
    39   */
    40  public class AllSCXMLTestSuite extends TestCase {
    41
    42      /***
    43       * Construct a new instance.
    44       */
    45      public AllSCXMLTestSuite(String name) {
    46          super(name);
    47      }
    48
    49      /***
    50       * Command-line interface.
    51       */
    52      public static void main(String[] args) {
    53          TestRunner.run(suite());
    54      }
    55
    56      /***
    57       * Get the suite of tests
    58       */
    59      public static Test suite() {
    60          TestSuite suite = new TestSuite();
    61          suite.setName("Commons-SCXML (all) Tests");
    62          suite.addTest(EnvFacesTestSuite.suite());
    63          suite.addTest(EnvJexlTestSuite.suite());
    64          suite.addTest(EnvJspTestSuite.suite());
    65          suite.addTest(EnvServletTestSuite.suite());
    66          suite.addTest(EnvTestSuite.suite());
    67          suite.addTest(InvokeTestSuite.suite());
    68          suite.addTest(IOTestSuite.suite());
    69          suite.addTest(ModelTestSuite.suite());
    70          suite.addTest(SCXMLTestSuite.suite());
    71          suite.addTest(SemanticsTestSuite.suite());
    72          suite.addTest(TestingTestSuite.suite());
    73          return suite;
    74      }
    75  }