| 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 jalview.bin.Cache; |
| 26 |
|
|
| 27 |
|
import org.testng.annotations.BeforeClass; |
| 28 |
|
import org.testng.annotations.Test; |
| 29 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 2 |
Complexity Density: 0.29 |
|
| 30 |
|
public class RfamFullTest |
| 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 = "rfam.org/family/ABC/alignment/full?gzip=1&download=1"; |
| 42 |
|
|
| 43 |
|
|
| 44 |
1 |
String url = new RfamFull().getURL(" abc "); |
| 45 |
1 |
assertEquals(url, "https://" + path); |
| 46 |
|
|
| 47 |
|
|
| 48 |
1 |
Cache.setProperty(Rfam.RFAM_BASEURL_KEY, "http://rfam.org"); |
| 49 |
1 |
url = new RfamFull().getURL(" abc "); |
| 50 |
1 |
assertEquals(url, "http://" + path); |
| 51 |
|
} |
| 52 |
|
} |