Eliminated main method.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@383457 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2006-03-06 03:29:14 +00:00
parent 55472ca4f5
commit 4b3c30188e
2 changed files with 21 additions and 14 deletions

View File

@ -21,22 +21,33 @@ import org.apache.commons.math.TestUtils;
/** /**
* Abstract base class for {@link ContinuousDistribution} tests. * Abstract base class for {@link ContinuousDistribution} tests.
* <p> * <p>
* To create a concrete test class for a continuous distribution implementation, * To create a concrete test class for a continuous distribution
* implement makeDistribution() to return a distribution instance to use in * implementation, first implement makeDistribution() to return a distribution
* tests and each of the test data generation methods below. In each case, the * instance to use in tests. Then implement each of the test data generation
* test points and test values arrays returned represent parallel arrays of * methods below. In each case, the test points and test values arrays
* inputs and expected values for the distribution returned by makeDistribution(). * 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> * <p>
* makeCumulativeTestPoints() -- arguments used to test cumulative probabilities * makeCumulativeTestPoints() -- arguments used to test cumulative probabilities
* makeCumulativeTestValues() -- expected cumulative probabilites * makeCumulativeTestValues() -- expected cumulative probabilites
* makeInverseCumulativeTestPoints() -- arguments used to test inverse cdf evaluation * makeInverseCumulativeTestPoints() -- arguments used to test inverse cdf
* makeInverseCumulativeTestValues() -- expected inverse cdf values * makeInverseCumulativeTestValues() -- expected inverse cdf values
* <p> * <p>
* To implement additional test cases with different distribution instances and test data, * To implement additional test cases with different distribution instances and
* use the setXxx methods for the instance data in test cases and call the verifyXxx methods * test data, use the setXxx methods for the instance data in test cases and
* to verify results. * call the verifyXxx methods to verify results.
* <p> * <p>
* Error tolerance can be overriden by implementing getTolerance(). * 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 {@link NormalDistributionTest} and {@link ChiSquareDistributionTest}
* for examples.
* *
* @version $Revision$ $Date$ * @version $Revision$ $Date$
*/ */

View File

@ -33,10 +33,6 @@ public class NormalDistributionTest extends ContinuousDistributionAbstractTest
super(arg0); super(arg0);
} }
public static void main(String[] args) {
junit.swingui.TestRunner.run(NormalDistributionTest.class);
}
//-------------- Implementations for abstract methods ----------------------- //-------------- Implementations for abstract methods -----------------------
/** Creates the default continuous distribution instance to use in tests. */ /** Creates the default continuous distribution instance to use in tests. */