1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.schemes; |
22 |
|
|
23 |
|
import static org.testng.Assert.assertEquals; |
24 |
|
import static org.testng.Assert.assertTrue; |
25 |
|
|
26 |
|
import org.testng.annotations.Test; |
27 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (32) |
Complexity: 2 |
Complexity Density: 0.07 |
|
28 |
|
public class JalviewColourSchemeTest |
29 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (15) |
Complexity: 1 |
Complexity Density: 0.07 |
1PASS
|
|
30 |
1 |
@Test(groups = "Functional")... |
31 |
|
public void testGetSchemeClass() |
32 |
|
{ |
33 |
1 |
assertTrue(JalviewColourScheme.Clustal |
34 |
|
.getSchemeClass() == ClustalxColourScheme.class); |
35 |
1 |
assertTrue(JalviewColourScheme.Blosum62 |
36 |
|
.getSchemeClass() == Blosum62ColourScheme.class); |
37 |
1 |
assertTrue(JalviewColourScheme.PID |
38 |
|
.getSchemeClass() == PIDColourScheme.class); |
39 |
1 |
assertTrue(JalviewColourScheme.Hydrophobic |
40 |
|
.getSchemeClass() == HydrophobicColourScheme.class); |
41 |
1 |
assertTrue(JalviewColourScheme.Zappo |
42 |
|
.getSchemeClass() == ZappoColourScheme.class); |
43 |
1 |
assertTrue(JalviewColourScheme.Taylor |
44 |
|
.getSchemeClass() == TaylorColourScheme.class); |
45 |
1 |
assertTrue(JalviewColourScheme.Helix |
46 |
|
.getSchemeClass() == HelixColourScheme.class); |
47 |
1 |
assertTrue(JalviewColourScheme.Strand |
48 |
|
.getSchemeClass() == StrandColourScheme.class); |
49 |
1 |
assertTrue(JalviewColourScheme.Turn |
50 |
|
.getSchemeClass() == TurnColourScheme.class); |
51 |
1 |
assertTrue(JalviewColourScheme.Buried |
52 |
|
.getSchemeClass() == BuriedColourScheme.class); |
53 |
1 |
assertTrue(JalviewColourScheme.Nucleotide |
54 |
|
.getSchemeClass() == NucleotideColourScheme.class); |
55 |
1 |
assertTrue(JalviewColourScheme.PurinePyrimidine |
56 |
|
.getSchemeClass() == PurinePyrimidineColourScheme.class); |
57 |
1 |
assertTrue(JalviewColourScheme.TCoffee |
58 |
|
.getSchemeClass() == TCoffeeColourScheme.class); |
59 |
1 |
assertTrue(JalviewColourScheme.RNAHelices |
60 |
|
.getSchemeClass() == RNAHelicesColour.class); |
61 |
1 |
assertTrue(JalviewColourScheme.IdColour |
62 |
|
.getSchemeClass() == IdColourScheme.class); |
63 |
|
} |
64 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (15) |
Complexity: 1 |
Complexity Density: 0.07 |
1PASS
|
|
65 |
1 |
@Test(groups = "Functional")... |
66 |
|
public void testToString() |
67 |
|
{ |
68 |
1 |
assertEquals(JalviewColourScheme.Clustal.toString(), "Clustal"); |
69 |
1 |
assertEquals(JalviewColourScheme.Blosum62.toString(), "Blosum62"); |
70 |
1 |
assertEquals(JalviewColourScheme.PID.toString(), "% Identity"); |
71 |
1 |
assertEquals(JalviewColourScheme.Zappo.toString(), "Zappo"); |
72 |
1 |
assertEquals(JalviewColourScheme.Taylor.toString(), "Taylor"); |
73 |
1 |
assertEquals(JalviewColourScheme.Hydrophobic.toString(), "Hydrophobic"); |
74 |
1 |
assertEquals(JalviewColourScheme.Helix.toString(), "Helix Propensity"); |
75 |
1 |
assertEquals(JalviewColourScheme.Strand.toString(), |
76 |
|
"Strand Propensity"); |
77 |
1 |
assertEquals(JalviewColourScheme.Turn.toString(), "Turn Propensity"); |
78 |
1 |
assertEquals(JalviewColourScheme.Buried.toString(), "Buried Index"); |
79 |
1 |
assertEquals(JalviewColourScheme.Nucleotide.toString(), "Nucleotide"); |
80 |
1 |
assertEquals(JalviewColourScheme.PurinePyrimidine.toString(), |
81 |
|
"Purine/Pyrimidine"); |
82 |
1 |
assertEquals(JalviewColourScheme.TCoffee.toString(), "T-Coffee Scores"); |
83 |
1 |
assertEquals(JalviewColourScheme.RNAHelices.toString(), "RNA Helices"); |
84 |
1 |
assertEquals(JalviewColourScheme.IdColour.toString(), "Sequence ID"); |
85 |
|
} |
86 |
|
} |