JAL-4386 - Implementation of retrieving secondary structure
[jalview.git] / test / jalview / analysis / AlignmentUtilsTests.java
index eee5e87..d5639fa 100644 (file)
@@ -36,6 +36,7 @@ import java.util.HashMap;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Set;
 import java.util.SortedMap;
 import java.util.TreeMap;
 
@@ -2855,12 +2856,12 @@ public class AlignmentUtilsTests
             {annotations4, true}, // Annotations present from JPred secondary structure present
         };
     }
-//    
-//    @Test(dataProvider = "SSSourceFromAnnotationDescription")
-//    public void testGetSSSourceFromAnnotationDescription(Map<SequenceI, List<AlignmentAnnotation>> annotations, String expectedSSSource) {
-//        String actualSSSource = AlignmentUtils.getSSSourceFromAnnotationDescription(annotations);
-//        Assert.assertEquals(actualSSSource, expectedSSSource);
-//    }
+    
+    @Test
+    public void testGetSSSourceFromAnnotationDescription(AlignmentAnnotation[] annotations, String expectedSSSource) {
+        List<String> actualSSSource = AlignmentUtils.extractSSSourceInAlignmentAnnotation(annotations);
+        Assert.assertEquals(actualSSSource, expectedSSSource);
+    }
     
     @DataProvider(name = "SSSourceFromAnnotationDescription")
     public static Object[][] provideSSSourceFromAnnotationDescription() {