Removed obsolete tests (cf. MATH-1158).
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/47c41fe3 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/47c41fe3 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/47c41fe3 Branch: refs/heads/task-MATH-1366 Commit: 47c41fe3071c2aee40fa2a158eddb0ffcfff22b5 Parents: 7550cb4 Author: Gilles <[email protected]> Authored: Fri May 20 14:24:00 2016 +0200 Committer: Gilles <[email protected]> Committed: Fri May 20 14:24:00 2016 +0200 ---------------------------------------------------------------------- .../math4/random/EmpiricalDistributionTest.java | 33 -------------------- 1 file changed, 33 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/47c41fe3/src/test/java/org/apache/commons/math4/random/EmpiricalDistributionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/random/EmpiricalDistributionTest.java b/src/test/java/org/apache/commons/math4/random/EmpiricalDistributionTest.java index 3c0564f..c23b477 100644 --- a/src/test/java/org/apache/commons/math4/random/EmpiricalDistributionTest.java +++ b/src/test/java/org/apache/commons/math4/random/EmpiricalDistributionTest.java @@ -257,39 +257,6 @@ public final class EmpiricalDistributionTest extends RealDistributionAbstractTes TestUtils.assertEquals(expectedGeneratorUpperBounds, dist.getGeneratorUpperBounds(), tol); } - // XXX REMOVE (test "embedded RNG" which is to be removed) -// @Test -// public void testGeneratorConfig() { -// double[] testData = {0, 1, 2, 3, 4}; -// RandomGenerator generator = new RandomAdaptorTest.ConstantGenerator(0.5); - -// EmpiricalDistribution dist = new EmpiricalDistribution(5, generator); -// dist.load(testData); -// for (int i = 0; i < 5; i++) { -// Assert.assertEquals(2.0, dist.getNextValue(), 0d); -// } - -// // Verify no NPE with null generator argument -// dist = new EmpiricalDistribution(5, (RandomGenerator) null); -// dist.load(testData); -// dist.getNextValue(); -// } - - // XXX REMOVE (test "embedded RNG" which is to be removed) -// @Test -// public void testReSeed() throws Exception { -// empiricalDistribution.load(url); -// empiricalDistribution.reSeed(100); -// final double [] values = new double[10]; -// for (int i = 0; i < 10; i++) { -// values[i] = empiricalDistribution.getNextValue(); -// } -// empiricalDistribution.reSeed(100); -// for (int i = 0; i < 10; i++) { -// Assert.assertEquals(values[i],empiricalDistribution.getNextValue(), 0d); -// } -// } - private void verifySame(EmpiricalDistribution d1, EmpiricalDistribution d2) { Assert.assertEquals(d1.isLoaded(), d2.isLoaded()); Assert.assertEquals(d1.getBinCount(), d2.getBinCount());
