1   /*
2    * Copyright 2006-2007 the original author or authors.
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  
17  package net.sf.ezmorph;
18  
19  import junit.framework.Test;
20  import junit.framework.TestCase;
21  import junit.framework.TestSuite;
22  import junit.textui.TestRunner;
23  import net.sf.ezmorph.array.ArrayTestSuite;
24  import net.sf.ezmorph.bean.BeanTestSuite;
25  import net.sf.ezmorph.object.ObjectTestSuite;
26  import net.sf.ezmorph.primitive.PrimitiveTestSuite;
27  import net.sf.ezmorph.test.TestTestSuite;
28  
29  /**
30   * Test suite for [ezmorph].
31   *
32   * @author Andres Almiray <aalmiray@users.sourceforge.net>
33   */
34  public class AllEZMorphTestSuite extends TestCase
35  {
36     /**
37      * Command-line interface.
38      */
39     public static void main( String[] args )
40     {
41        TestRunner.run( suite() );
42     }
43  
44     /**
45      * Get the suite of tests
46      */
47     public static Test suite()
48     {
49        TestSuite suite = new TestSuite();
50        suite.setName( "EZMorph (all) Tests" );
51        suite.addTest( MorphTestSuite.suite() );
52        suite.addTest( ArrayTestSuite.suite() );
53        suite.addTest( ObjectTestSuite.suite() );
54        suite.addTest( BeanTestSuite.suite() );
55        suite.addTest( PrimitiveTestSuite.suite() );
56        suite.addTest( TestTestSuite.suite() );
57        return suite;
58     }
59  
60     /**
61      * Construct a new instance.
62      */
63     public AllEZMorphTestSuite( String name )
64     {
65        super( name );
66     }
67  }