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  package net.sf.ezmorph.primitive;
17  
18  import junit.framework.Test;
19  import junit.framework.TestCase;
20  import junit.framework.TestSuite;
21  import junit.textui.TestRunner;
22  
23  /**
24   * Test suite for the EZMorph Primitive package.
25   * 
26   * @author Andres Almiray <aalmiray@users.sourceforge.net>
27   */
28  public class PrimitiveTestSuite extends TestCase
29  {
30     /**
31      * Command-line interface.
32      */
33     public static void main( String[] args )
34     {
35        TestRunner.run( suite() );
36     }
37  
38     /**
39      * Get the suite of tests
40      */
41     public static Test suite()
42     {
43        TestSuite suite = new TestSuite();
44        suite.setName( "EZMorph-Primitive Tests" );
45        suite.addTest( BooleanMorpherTest.suite() );
46        suite.addTest( CharMorpherTest.suite() );
47        suite.addTest( ByteMorpherTest.suite() );
48        suite.addTest( ShortMorpherTest.suite() );
49        suite.addTest( IntMorpherTest.suite() );
50        suite.addTest( LongMorpherTest.suite() );
51        suite.addTest( FloatMorpherTest.suite() );
52        suite.addTest( DoubleMorpherTest.suite() );
53  
54        return suite;
55     }
56  
57     /**
58      * Construct a new instance.
59      */
60     public PrimitiveTestSuite( String name )
61     {
62        super( name );
63     }
64  }