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 |
|
|
|
|
| 0% |
Uncovered Elements: 32 (32) |
Complexity: 2 |
Complexity Density: 0.07 |
|
28 |
|
public class JalviewColourSchemeTest |
29 |
|
{ |
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 1 |
Complexity Density: 0.07 |
4-
|
|
30 |
0 |
@Test(groups = "Functional")... |
31 |
|
public void testGetSchemeClass() |
32 |
|
{ |
33 |
0 |
assertTrue(JalviewColourScheme.Clustal |
34 |
|
.getSchemeClass() == ClustalxColourScheme.class); |
35 |
0 |
assertTrue(JalviewColourScheme.Blosum62 |
36 |
|
.getSchemeClass() == Blosum62ColourScheme.class); |
37 |
0 |
assertTrue(JalviewColourScheme.PID |
38 |
|
.getSchemeClass() == PIDColourScheme.class); |
39 |
0 |
assertTrue(JalviewColourScheme.Hydrophobic |
40 |
|
.getSchemeClass() == HydrophobicColourScheme.class); |
41 |
0 |
assertTrue(JalviewColourScheme.Zappo |
42 |
|
.getSchemeClass() == ZappoColourScheme.class); |
43 |
0 |
assertTrue(JalviewColourScheme.Taylor |
44 |
|
.getSchemeClass() == TaylorColourScheme.class); |
45 |
0 |
assertTrue(JalviewColourScheme.Helix |
46 |
|
.getSchemeClass() == HelixColourScheme.class); |
47 |
0 |
assertTrue(JalviewColourScheme.Strand |
48 |
|
.getSchemeClass() == StrandColourScheme.class); |
49 |
0 |
assertTrue(JalviewColourScheme.Turn |
50 |
|
.getSchemeClass() == TurnColourScheme.class); |
51 |
0 |
assertTrue(JalviewColourScheme.Buried |
52 |
|
.getSchemeClass() == BuriedColourScheme.class); |
53 |
0 |
assertTrue(JalviewColourScheme.Nucleotide |
54 |
|
.getSchemeClass() == NucleotideColourScheme.class); |
55 |
0 |
assertTrue(JalviewColourScheme.PurinePyrimidine |
56 |
|
.getSchemeClass() == PurinePyrimidineColourScheme.class); |
57 |
0 |
assertTrue(JalviewColourScheme.TCoffee |
58 |
|
.getSchemeClass() == TCoffeeColourScheme.class); |
59 |
0 |
assertTrue(JalviewColourScheme.RNAHelices |
60 |
|
.getSchemeClass() == RNAHelicesColour.class); |
61 |
0 |
assertTrue(JalviewColourScheme.IdColour |
62 |
|
.getSchemeClass() == IdColourScheme.class); |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 1 |
Complexity Density: 0.07 |
4-
|
|
65 |
0 |
@Test(groups = "Functional")... |
66 |
|
public void testToString() |
67 |
|
{ |
68 |
0 |
assertEquals(JalviewColourScheme.Clustal.toString(), "Clustal"); |
69 |
0 |
assertEquals(JalviewColourScheme.Blosum62.toString(), "Blosum62"); |
70 |
0 |
assertEquals(JalviewColourScheme.PID.toString(), "% Identity"); |
71 |
0 |
assertEquals(JalviewColourScheme.Zappo.toString(), "Zappo"); |
72 |
0 |
assertEquals(JalviewColourScheme.Taylor.toString(), "Taylor"); |
73 |
0 |
assertEquals(JalviewColourScheme.Hydrophobic.toString(), "Hydrophobic"); |
74 |
0 |
assertEquals(JalviewColourScheme.Helix.toString(), "Helix Propensity"); |
75 |
0 |
assertEquals(JalviewColourScheme.Strand.toString(), |
76 |
|
"Strand Propensity"); |
77 |
0 |
assertEquals(JalviewColourScheme.Turn.toString(), "Turn Propensity"); |
78 |
0 |
assertEquals(JalviewColourScheme.Buried.toString(), "Buried Index"); |
79 |
0 |
assertEquals(JalviewColourScheme.Nucleotide.toString(), "Nucleotide"); |
80 |
0 |
assertEquals(JalviewColourScheme.PurinePyrimidine.toString(), |
81 |
|
"Purine/Pyrimidine"); |
82 |
0 |
assertEquals(JalviewColourScheme.TCoffee.toString(), "T-Coffee Scores"); |
83 |
0 |
assertEquals(JalviewColourScheme.RNAHelices.toString(), "RNA Helices"); |
84 |
0 |
assertEquals(JalviewColourScheme.IdColour.toString(), "Sequence ID"); |
85 |
|
} |
86 |
|
} |