1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.datamodel; |
22 |
|
|
23 |
|
import org.testng.Assert; |
24 |
|
import org.testng.annotations.Test; |
25 |
|
|
|
|
| 0% |
Uncovered Elements: 24 (24) |
Complexity: 1 |
Complexity Density: 0.04 |
|
26 |
|
public class ContactRangeTest |
27 |
|
{ |
28 |
|
|
|
|
| 0% |
Uncovered Elements: 23 (23) |
Complexity: 1 |
Complexity Density: 0.04 |
4-
|
|
29 |
0 |
@Test... |
30 |
|
public void testContactRangeBean() |
31 |
|
{ |
32 |
0 |
ContactRange cr = new ContactRange(); |
33 |
0 |
cr.update(5, 15, 6, 0.2, 12, 1.5, 3.7); |
34 |
0 |
Assert.assertEquals(5, cr.getFrom_column()); |
35 |
0 |
Assert.assertEquals(15, cr.getTo_column()); |
36 |
0 |
Assert.assertEquals(6, cr.getMinPos()); |
37 |
0 |
Assert.assertEquals(0.2, cr.getMin()); |
38 |
0 |
Assert.assertEquals(12, cr.getMaxPos()); |
39 |
0 |
Assert.assertEquals(1.5, cr.getMax()); |
40 |
0 |
Assert.assertEquals(3.7, cr.getMean()); |
41 |
0 |
cr.setFrom_column(6); |
42 |
0 |
Assert.assertEquals(6, cr.getFrom_column()); |
43 |
0 |
cr.setTo_column(16); |
44 |
0 |
Assert.assertEquals(16, cr.getTo_column()); |
45 |
0 |
cr.setMinPos(7); |
46 |
0 |
Assert.assertEquals(7, cr.getMinPos()); |
47 |
0 |
cr.setMin(0.4); |
48 |
0 |
Assert.assertEquals(0.4, cr.getMin()); |
49 |
0 |
cr.setMaxPos(13); |
50 |
0 |
Assert.assertEquals(13, cr.getMaxPos()); |
51 |
0 |
cr.setMax(2.5); |
52 |
0 |
Assert.assertEquals(2.5, cr.getMax()); |
53 |
0 |
cr.setMean(3.7); |
54 |
0 |
Assert.assertEquals(3.7, cr.getMean()); |
55 |
|
} |
56 |
|
} |