JAL-1191 more test cases
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 22 Dec 2015 16:24:02 +0000 (16:24 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 22 Dec 2015 16:24:02 +0000 (16:24 +0000)
test/jalview/io/gff/SequenceOntologyTest.java

index 54ab5dd..2fd3865 100644 (file)
@@ -16,7 +16,7 @@ public class SequenceOntologyTest
   }
 
   @Test(groups = "Functional")
-  public void testTermIsA()
+  public void testIsA()
   {
     assertTrue(so.isA("SO:0000087", "SO:0000704"));
     assertFalse(so.isA("SO:0000704", "SO:0000087"));
@@ -30,7 +30,20 @@ public class SequenceOntologyTest
     assertTrue(so.isA("micronuclear_sequence", "sequence_attribute"));
 
     // same thing:
+    assertTrue(so.isA("micronuclear_sequence", "micronuclear_sequence"));
     assertTrue(so.isA("micronuclear_sequence", "SO:0000084"));
+    assertTrue(so.isA("SO:0000084", "micronuclear_sequence"));
+    assertTrue(so.isA("SO:0000084", "SO:0000084"));
+
+    // SO name to description:
+    assertTrue(so.isA("SO:0000084", "organelle_sequence"));
+    assertTrue(so.isA("SO:0000084", "sequence_location"));
+    assertTrue(so.isA("SO:0000084", "sequence_attribute"));
+
+    // description to SO name:
+    assertTrue(so.isA("micronuclear_sequence", "SO:0000736"));
+    assertTrue(so.isA("micronuclear_sequence", "SO:0000735"));
+    assertTrue(so.isA("micronuclear_sequence", "SO:0000400"));
   }
 
   @Test(groups = "Functional")