1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
package uk.co.gidley.jmxmonitor.functions; |
18 |
|
|
19 |
|
import org.testng.annotations.Test; |
20 |
|
|
21 |
|
import static org.hamcrest.Matchers.is; |
22 |
|
import static org.hamcrest.MatcherAssert.assertThat; |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 3 |
Complexity Density: 0.43 |
|
27 |
|
public class RangeFunctionsTest { |
28 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
1
PASS
|
|
29 |
1
|
@Test... |
30 |
|
public void testBetween(){ |
31 |
1
|
assertThat(RangeFunctions.isBetween(2,1,3), is(true)); |
32 |
1
|
assertThat(RangeFunctions.isBetween(1,1,3), is(false)); |
33 |
1
|
assertThat(RangeFunctions.isBetween(3,1,3), is(false)); |
34 |
|
} |
35 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
36 |
1
|
@Test... |
37 |
|
public void testBelow(){ |
38 |
1
|
assertThat(RangeFunctions.isBelow(1,2), is(true)); |
39 |
1
|
assertThat(RangeFunctions.isBelow(2,2), is(false)); |
40 |
|
} |
41 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
42 |
1
|
@Test... |
43 |
|
public void testAbove(){ |
44 |
1
|
assertThat(RangeFunctions.isAbove(2,2), is(false)); |
45 |
1
|
assertThat(RangeFunctions.isAbove(3,2), is(true)); |
46 |
|
} |
47 |
|
|
48 |
|
} |