EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.statistics.test]

COVERAGE SUMMARY FOR SOURCE FILE [TestPhiMixingBatchAlgorithm.java]

nameclass, %method, %block, %line, %
TestPhiMixingBatchAlgorithm.java0%   (0/1)0%   (0/3)0%   (0/42)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TestPhiMixingBatchAlgorithm0%   (0/1)0%   (0/3)0%   (0/42)0%   (0/12)
TestPhiMixingBatchAlgorithm (): void 0%   (0/1)0%   (0/3)0%   (0/1)
setUp (): void 0%   (0/1)0%   (0/8)0%   (0/3)
testPhiMixing (): void 0%   (0/1)0%   (0/31)0%   (0/8)

1package de.uka.ipd.sdq.statistics.test;
2 
3import java.util.List;
4 
5import de.uka.ipd.sdq.statistics.IBatchAlgorithm;
6import de.uka.ipd.sdq.statistics.PhiMixingBatchAlgorithm;
7import de.uka.ipd.sdq.statistics.estimation.SampleMeanEstimator;
8import junit.framework.TestCase;
9 
10public class TestPhiMixingBatchAlgorithm extends TestCase {
11 
12        private IBatchAlgorithm batchAlgorithm;
13 
14        @Override
15        protected void setUp() throws Exception {
16                super.setUp();
17 
18                batchAlgorithm = new PhiMixingBatchAlgorithm();
19        }
20 
21        public void testPhiMixing() {
22                List<Double> samples = TestUtils.createSampleSequence(32000, 4);
23                batchAlgorithm.offerSamples(samples);
24 
25                double expectedMean = new SampleMeanEstimator().estimatePoint(samples);
26                double actualMean = new SampleMeanEstimator().estimatePoint(batchAlgorithm
27                                .getBatchMeans());
28 
29                assertTrue(batchAlgorithm.hasValidBatches());
30                assertEquals(expectedMean, actualMean, 0.01);
31        }
32 
33}

[all classes][de.uka.ipd.sdq.statistics.test]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov