3 import static org.testng.AssertJUnit.assertEquals;
4 import static org.testng.AssertJUnit.assertNull;
6 import java.util.Arrays;
9 import org.testng.annotations.Test;
11 public class ShiftListTest
14 @Test(groups ={ "Functional" })
15 public void testParseMap()
17 assertNull(ShiftList.parseMap(null));
18 assertNull(ShiftList.parseMap(new int[]
22 * Gap map showing residues in aligned positions 2,3,6,8,9,10,12
25 { 2, 3, 6, 8, 9, 10, 12 };
26 List<int[]> shifts = ShiftList.parseMap(gm).getShifts();
27 assertEquals(4, shifts.size());
29 // TODO are these results (which pass) correct??
30 assertEquals("[0, 2]", Arrays.toString(shifts.get(0)));
31 assertEquals("[4, 2]", Arrays.toString(shifts.get(1)));
32 assertEquals("[7, 1]", Arrays.toString(shifts.get(2)));
33 assertEquals("[11, 1]", Arrays.toString(shifts.get(3)));