Author: psteitz Date: Sun Mar 5 19:29:14 2006 New Revision: 383457 URL: http://svn.apache.org/viewcvs?rev=383457&view=rev Log: Eliminated main method.
Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java?rev=383457&r1=383456&r2=383457&view=diff ============================================================================== --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java Sun Mar 5 19:29:14 2006 @@ -21,22 +21,33 @@ /** * Abstract base class for [EMAIL PROTECTED] ContinuousDistribution} tests. * <p> - * To create a concrete test class for a continuous distribution implementation, - * implement makeDistribution() to return a distribution instance to use in - * tests and each of the test data generation methods below. In each case, the - * test points and test values arrays returned represent parallel arrays of - * inputs and expected values for the distribution returned by makeDistribution(). - * <p> + * To create a concrete test class for a continuous distribution + * implementation, first implement makeDistribution() to return a distribution + * instance to use in tests. Then implement each of the test data generation + * methods below. In each case, the test points and test values arrays + * returned represent parallel arrays of inputs and expected values for the + * distribution returned by makeDistribution(). Default implementations + * are provided for the makeInverseXxx methods that just invert the mapping + * defined by the arrays returned by the makeCumulativeXxx methods. + * <p> * makeCumulativeTestPoints() -- arguments used to test cumulative probabilities * makeCumulativeTestValues() -- expected cumulative probabilites - * makeInverseCumulativeTestPoints() -- arguments used to test inverse cdf evaluation + * makeInverseCumulativeTestPoints() -- arguments used to test inverse cdf * makeInverseCumulativeTestValues() -- expected inverse cdf values * <p> - * To implement additional test cases with different distribution instances and test data, - * use the setXxx methods for the instance data in test cases and call the verifyXxx methods - * to verify results. + * To implement additional test cases with different distribution instances and + * test data, use the setXxx methods for the instance data in test cases and + * call the verifyXxx methods to verify results. * <p> * Error tolerance can be overriden by implementing getTolerance(). + * <p> + * Test data should be validated against reference tables or other packages + * where possible, and the source of the reference data and/or validation + * should be documented in the test cases. A framework for validating + * distribution data against R is included in the /src/R source tree. + * <p> + * See [EMAIL PROTECTED] NormalDistributionTest} and [EMAIL PROTECTED] ChiSquareDistributionTest} + * for examples. * * @version $Revision$ $Date$ */ Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java?rev=383457&r1=383456&r2=383457&view=diff ============================================================================== --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java Sun Mar 5 19:29:14 2006 @@ -33,10 +33,6 @@ super(arg0); } - public static void main(String[] args) { - junit.swingui.TestRunner.run(NormalDistributionTest.class); - } - //-------------- Implementations for abstract methods ----------------------- /** Creates the default continuous distribution instance to use in tests. */ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]