}
@Test(groups = "Functional")
- public void testTermIsA()
+ public void testIsA()
{
assertTrue(so.isA("SO:0000087", "SO:0000704"));
assertFalse(so.isA("SO:0000704", "SO:0000087"));
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")