JAL-2835 spike updated with latest
[jalview.git] / test / jalview / util / MapListTest.java
index f3395ca..3fc6fe0 100644 (file)
@@ -818,7 +818,7 @@ public class MapListTest
   /**
    * Test the method that compounds ('traverses') two mappings
    */
-  @Test
+  @Test(groups = "Functional")
   public void testTraverse()
   {
     /*
@@ -931,5 +931,13 @@ public class MapListTest
     toRanges = compound.getToRanges();
     assertEquals(toRanges.size(), 1);
     assertArrayEquals(new int[] { 47, 50, 71, 126 }, toRanges.get(0));
+
+    /*
+     * method returns null if not all regions are mapped through
+     */
+    ml1 = new MapList(new int[] { 1, 50 }, new int[] { 101, 150 }, 1, 1);
+    ml2 = new MapList(new int[] { 131, 180 }, new int[] { 201, 250 }, 1, 3);
+    compound = ml1.traverse(ml2);
+    assertNull(compound);
   }
 }