1 16 package org.apache.commons.lang.math; 17 18 import junit.framework.Test; 19 import junit.framework.TestCase; 20 import junit.framework.TestSuite; 21 import junit.textui.TestRunner; 22 28 public class MathTestSuite extends TestCase { 29 30 33 public MathTestSuite(String name) { 34 super(name); 35 } 36 37 40 public static void main(String [] args) { 41 TestRunner.run(suite()); 42 } 43 44 47 public static Test suite() { 48 TestSuite suite = new TestSuite(); 49 suite.setName("Commons-Lang-Math Tests"); 50 suite.addTest(DoubleRangeTest.suite()); 51 suite.addTest(FloatRangeTest.suite()); 52 suite.addTest(FractionTest.suite()); 53 suite.addTest(IntRangeTest.suite()); 54 suite.addTest(LongRangeTest.suite()); 55 suite.addTest(NumberRangeTest.suite()); 56 suite.addTest(NumberUtilsTest.suite()); 57 suite.addTest(RandomUtilsTest.suite()); 58 return suite; 59 } 60 } 61 | Popular Tags |