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

COVERAGE SUMMARY FOR SOURCE FILE [SampleTest.java]

nameclass, %method, %block, %line, %
SampleTest.java100% (1/1)100% (3/3)100% (48/48)100% (12/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SampleTest100% (1/1)100% (3/3)100% (48/48)100% (12/12)
<static initializer> 100% (1/1)100% (3/3)100% (2/2)
SampleTest (): void 100% (1/1)100% (3/3)100% (1/1)
equals (): void 100% (1/1)100% (42/42)100% (10/10)

1package de.uka.ipd.sdq.probfunction.math.test;
2 
3import junit.framework.Assert;
4 
5import org.junit.Test;
6 
7import de.uka.ipd.sdq.probfunction.math.IProbabilityFunctionFactory;
8import de.uka.ipd.sdq.probfunction.math.ISample;
9 
10 
11public class SampleTest{
12        
13        public static IProbabilityFunctionFactory pfFactory = IProbabilityFunctionFactory.eINSTANCE;
14        
15        @Test
16        public void equals(){
17                ISample s1a = pfFactory.createSample("Haus", 0.3);
18                ISample s1b = pfFactory.createSample("Haus", 0.3);
19                ISample s2 = pfFactory.createSample("Haus", 0.4);
20                ISample s3 = pfFactory.createSample(0.5 , 0.4);
21                
22                Assert.assertTrue(s1a.equals(s1a));
23                Assert.assertTrue(s1a.equals(s1b));
24                Assert.assertFalse(s1a.equals(s2));
25                Assert.assertFalse(s1a.equals(s3));
26                Assert.assertFalse(s1a.equals("Haus"));
27        }
28 
29}

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