1 package jalview.ext.rbvi.chimera;
3 import static org.testng.AssertJUnit.assertFalse;
4 import static org.testng.AssertJUnit.assertTrue;
6 import org.testng.annotations.Test;
8 import ext.edu.ucsf.rbvi.strucviz2.ChimeraManager;
9 import ext.edu.ucsf.rbvi.strucviz2.StructureManager;
11 public class ChimeraConnect
14 @Test(groups ={ "Functional" })
15 public void testLaunchAndExit()
17 final StructureManager structureManager = new StructureManager(true);
18 ChimeraManager cm = new ChimeraManager(structureManager);
19 assertTrue("Couldn't launch chimera",
20 cm.launchChimera(StructureManager.getChimeraPaths()));
21 assertTrue(cm.isChimeraLaunched()); // Chimera process is alive
23 // not sure of the point of this is unless the tester is loading models
28 // Thread.sleep(1000);
29 // } catch (Exception q)
33 // Collection<ChimeraModel> cms = cm.getChimeraModels();
34 // for (ChimeraModel cmod :cms) {
35 // System.out.println(cmod.getModelName());
39 assertFalse(cm.isChimeraLaunched()); // Chimera process has ended