1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.ws.dbsources; |
22 |
|
|
23 |
|
import static org.testng.Assert.assertEquals; |
24 |
|
|
25 |
|
import org.testng.annotations.BeforeClass; |
26 |
|
import org.testng.annotations.Test; |
27 |
|
|
28 |
|
import jalview.bin.Cache; |
29 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 2 |
Complexity Density: 0.29 |
|
30 |
|
public class PfamFullTest |
31 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
32 |
1 |
@BeforeClass(alwaysRun = true)... |
33 |
|
public void setUp() |
34 |
|
{ |
35 |
1 |
Cache.loadProperties("test/jalview/io/testProps.jvprops"); |
36 |
|
} |
37 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1PASS
|
|
38 |
1 |
@Test(groups = "Functional")... |
39 |
|
public void testGetURL() |
40 |
|
{ |
41 |
1 |
String path = "www.ebi.ac.uk/interpro/api/entry/pfam/ABC/?annotation=alignment:full"; |
42 |
|
|
43 |
|
|
44 |
1 |
String url = new PfamFull().getURL(" abc "); |
45 |
1 |
assertEquals(url, "https://" + path); |
46 |
|
|
47 |
|
|
48 |
1 |
Cache.setProperty(Pfam.PFAM_BASEURL_KEY, |
49 |
|
"http://www.ebi.ac.uk/interpro/api/entry/pfam/$PFAMID$/?annotation=alignment:$ALTYPE$"); |
50 |
1 |
url = new PfamFull().getURL(" abc "); |
51 |
1 |
assertEquals(url, "http://" + path); |
52 |
|
} |
53 |
|
} |