Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
public void TestBeideWahr(boolean a, boolean b) throws Exception | 0 / 3 | 0 % |
|
0 / 2 | 0 % |
|
0 / 0 | --- | 0 / 2 | 0 % |
|
WahrFalsch.java | ||
---|---|---|
7 | public void TestBeideWahr(boolean a, boolean b) throws Exception{ | |
8 | ||
9 | if(a && b){ | |
10 | erg = "beide wahr"; | |
11 | System.out.println("Beide Wahr"); | |
12 | } | |
13 | else{ | |
14 | erg = "nicht beide wahr"; | |
15 | throw new Exception("Variablen nicht identisch"); | |
16 | } | |
17 | ||
18 | } |