From: gmungoc Date: Tue, 22 Dec 2015 16:24:02 +0000 (+0000) Subject: JAL-1191 more test cases X-Git-Tag: Release_2_10_0~296^2~95 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=05afdf18be827be5245a8eb798d70768141fd26c;p=jalview.git JAL-1191 more test cases --- diff --git a/test/jalview/io/gff/SequenceOntologyTest.java b/test/jalview/io/gff/SequenceOntologyTest.java index 54ab5dd..2fd3865 100644 --- a/test/jalview/io/gff/SequenceOntologyTest.java +++ b/test/jalview/io/gff/SequenceOntologyTest.java @@ -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")