--- /dev/null
+package jalview.ext.rbvi.chimera;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
+@RunWith(Suite.class)
+@SuiteClasses(
+{})
+public class AllTests
+{
+
+}
--- /dev/null
+package jalview.ext.rbvi.chimera;
+
+import static org.junit.Assert.*;
+
+import java.util.Arrays;
+import java.util.Collection;
+
+import org.junit.Test;
+
+import ext.edu.ucsf.rbvi.strucviz2.*;
+
+public class ChimeraConnect
+{
+
+ @Test
+ public void test()
+ {
+ StructureManager csm;
+ ext.edu.ucsf.rbvi.strucviz2.ChimeraManager cm = new ChimeraManager(csm = new ext.edu.ucsf.rbvi.strucviz2.StructureManager(true));
+ assertTrue("Couldn't launch chimera",cm.launchChimera(csm.getChimeraPaths()));
+
+ int n=0;
+ while (n++<100)
+ {
+ try {
+ Thread.sleep(1000);
+ } catch (Exception q)
+ {
+
+ }
+ Collection<ChimeraModel> cms = cm.getChimeraModels();
+ for (ChimeraModel cmod :cms) {
+ System.out.println(cmod.getModelName());
+ }
+ }
+ cm.exitChimera();
+ }
+
+}