JAL-1778 reinstated this.ssm to handle 'close all windows' robustly
[jalview.git] / test / jalview / util / MappingUtilsTest.java
index 4e144fc..ec9ace4 100644 (file)
@@ -90,7 +90,7 @@ public class MappingUtilsTest
    * Simple test of mapping with introns involved.
    */
   @Test
-  public void testBuildSearchResults_withIntro()
+  public void testBuildSearchResults_withIntron()
   {
     final Sequence seq1 = new Sequence("Seq1", "C-G-TAGA-GCAGCTT");
     seq1.createDatasetSequence();
@@ -384,6 +384,15 @@ public class MappingUtilsTest
     assertEquals("[0, 1, 3]", cs.getSelected().toString());
   }
 
+  @Test
+  public void testMapColumnSelection_null() throws IOException
+  {
+    setupMappedAlignments();
+    ColumnSelection cs = MappingUtils.mapColumnSelection(null, dnaView,
+            proteinView);
+    assertTrue("mapped selection not empty", cs.getSelected().isEmpty());
+  }
+
   /**
    * Tests for the method that converts a series of [start, end] ranges to
    * single positions