package jalview.ext.rbvi.chimera;
-import static org.junit.Assert.assertTrue;
-
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import static org.testng.AssertJUnit.assertTrue;
import jalview.api.structures.JalviewStructureDisplayI;
-import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
import jalview.gui.AlignFrame;
import jalview.gui.StructureViewer;
import jalview.gui.StructureViewer.ViewerType;
import jalview.io.FormatAdapter;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
public class JalviewChimeraView
{
}
- @Test
+ @Test(groups ={ "Functional" })
public void testSingleSeqViewJMol()
{
String inFile = "examples/1gaq.txt";
{
final StructureViewer structureViewer = new StructureViewer(af
.getViewport().getStructureSelectionManager());
-
+ structureViewer.setViewerType(ViewerType.JMOL);
JalviewStructureDisplayI jmolViewer = structureViewer
- .viewStructures(ViewerType.JMOL, af.getCurrentView()
- .getAlignPanel(), new PDBEntry[]
- { (PDBEntry) dsq.getPDBId().elementAt(q) },
- new SequenceI[][]
- { new SequenceI[]
- { sq } });
+ .viewStructures(dsq.getPDBId().elementAt(q),
+ new SequenceI[]
+ { sq }, af.getCurrentView().getAlignPanel());
/*
* Wait for viewer thread to start
*/
}
}
- @Test
+ @Test(groups ={ "Functional" })
public void testSingleSeqViewChimera()
{
String inFile = "examples/1gaq.txt";
{
final StructureViewer structureViewer = new StructureViewer(af
.getViewport().getStructureSelectionManager());
-
+ structureViewer.setViewerType(ViewerType.CHIMERA);
JalviewStructureDisplayI chimeraViewer = structureViewer
- .viewStructures(ViewerType.CHIMERA, af.getCurrentView()
- .getAlignPanel(), new PDBEntry[]
- { (PDBEntry) dsq.getPDBId().elementAt(q) },
- new SequenceI[][]
- { new SequenceI[]
- { sq } });
+ .viewStructures(dsq.getPDBId().elementAt(q),
+ new SequenceI[]
+ { sq }, af.getCurrentView().getAlignPanel());
/*
* Wait for viewer thread to start
*/