1 package jalview.datamodel;
3 import org.testng.Assert;
4 import org.testng.annotations.Test;
6 public class ContactRangeTest {
9 public void testContactRangeBean()
11 ContactRange cr = new ContactRange();
12 cr.update(5, 15, 6, 0.2, 12, 1.5,3.7);
13 Assert.assertEquals(5, cr.getFrom_column());
14 Assert.assertEquals(15, cr.getTo_column());
15 Assert.assertEquals(6, cr.getMinPos());
16 Assert.assertEquals(0.2, cr.getMin());
17 Assert.assertEquals(12, cr.getMaxPos());
18 Assert.assertEquals(1.5, cr.getMax());
19 Assert.assertEquals(3.7, cr.getMean());
21 Assert.assertEquals(6, cr.getFrom_column());
23 Assert.assertEquals(16, cr.getTo_column());
25 Assert.assertEquals(7, cr.getMinPos());
27 Assert.assertEquals(0.4, cr.getMin());
29 Assert.assertEquals(13, cr.getMaxPos());
31 Assert.assertEquals(2.5, cr.getMax());
33 Assert.assertEquals(3.7, cr.getMean());