1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.qedeq.kernel.se.dto.module; |
17 |
|
|
18 |
|
import org.qedeq.base.utility.EqualsUtility; |
19 |
|
import org.qedeq.kernel.se.dto.list.DefaultAtom; |
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
@link |
24 |
|
|
25 |
|
@author |
26 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (15) |
Complexity: 4 |
Complexity Density: 0.36 |
|
27 |
|
public class HypothesisVoTest extends AbstractVoModuleTestCase { |
28 |
|
|
29 |
|
|
30 |
|
private Class clazz = HypothesisVo.class; |
31 |
|
|
32 |
|
private HypothesisVo v0; |
33 |
|
|
34 |
|
private HypothesisVo v1; |
35 |
|
|
36 |
|
private HypothesisVo v2; |
37 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
38 |
3
|
protected void setUp() throws Exception {... |
39 |
3
|
super.setUp(); |
40 |
3
|
v0 = new HypothesisVo(null, null); |
41 |
3
|
v1 = new HypothesisVo("first", new FormulaVo(new DefaultAtom("dummy"))); |
42 |
3
|
v2 = new HypothesisVo(new FormulaVo(new DefaultAtom("dummy"))); |
43 |
|
} |
44 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
45 |
49
|
protected Class getTestedClass() {... |
46 |
49
|
return clazz; |
47 |
|
} |
48 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
49 |
1
|
public void testGetLabel() {... |
50 |
1
|
assertNull(v0.getLabel()); |
51 |
1
|
assertEquals("first", v1.getLabel()); |
52 |
1
|
assertNull(v2.getLabel()); |
53 |
|
} |
54 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
55 |
1
|
public void testGetFormula() {... |
56 |
1
|
assertNull(v0.getFormula()); |
57 |
1
|
assertTrue(EqualsUtility.equals(new FormulaVo(new DefaultAtom("dummy")), v1.getFormula())); |
58 |
1
|
assertTrue(EqualsUtility.equals(new FormulaVo(new DefaultAtom("dummy")), v2.getFormula())); |
59 |
|
} |
60 |
|
|
61 |
|
} |