Class | Line # | Actions | ||||
---|---|---|---|---|---|---|
SpeciesTest | 10 | 7 | 2 | 10 |
1 | package jalview.ext.ensembl; | |
2 | ||
3 | import static org.testng.Assert.assertFalse; | |
4 | import static org.testng.Assert.assertTrue; | |
5 | ||
6 | import java.util.Set; | |
7 | ||
8 | import org.testng.annotations.Test; | |
9 | ||
10 | public class SpeciesTest | |
11 | { | |
12 | 0 | ![]() |
13 | public void testGetModelOrganisms() | |
14 | { | |
15 | 0 | Set<Species> models = Species.getModelOrganisms(); |
16 | 0 | assertTrue(models.contains(Species.human)); |
17 | 0 | assertFalse(models.contains(Species.horse)); |
18 | 0 | for (Species s : Species.values()) |
19 | { | |
20 | 0 | if (s.isModelOrganism()) |
21 | { | |
22 | 0 | assertTrue(models.contains(s)); |
23 | } | |
24 | else | |
25 | { | |
26 | 0 | assertFalse(models.contains(s)); |
27 | } | |
28 | } | |
29 | } | |
30 | } |