1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.ext.rbvi.chimera; |
22 |
|
|
23 |
|
import static org.testng.AssertJUnit.assertFalse; |
24 |
|
import static org.testng.AssertJUnit.assertTrue; |
25 |
|
|
26 |
|
import jalview.gui.JvOptionPane; |
27 |
|
|
28 |
|
import org.testng.annotations.BeforeClass; |
29 |
|
import org.testng.annotations.Test; |
30 |
|
|
31 |
|
import ext.edu.ucsf.rbvi.strucviz2.ChimeraManager; |
32 |
|
import ext.edu.ucsf.rbvi.strucviz2.StructureManager; |
33 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 2 |
Complexity Density: 0.25 |
|
34 |
|
public class ChimeraConnect |
35 |
|
{ |
36 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
37 |
0 |
@BeforeClass(alwaysRun = true)... |
38 |
|
public void setUpJvOptionPane() |
39 |
|
{ |
40 |
0 |
JvOptionPane.setInteractiveMode(false); |
41 |
0 |
JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); |
42 |
|
} |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
44 |
0 |
@Test(groups = { "External" })... |
45 |
|
public void testLaunchAndExit() |
46 |
|
{ |
47 |
0 |
final StructureManager structureManager = new StructureManager(true); |
48 |
0 |
ChimeraManager cm = new ChimeraManager(structureManager); |
49 |
0 |
assertTrue("Couldn't launch chimera", |
50 |
|
cm.launchChimera(StructureManager.getChimeraPaths(false))); |
51 |
0 |
assertTrue(cm.isChimeraLaunched()); |
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
0 |
cm.exitChimera(); |
69 |
0 |
assertFalse(cm.isChimeraLaunched()); |
70 |
|
} |
71 |
|
|
72 |
|
} |