import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
+@Test(singleThreaded = true)
public class StructureSelectionManagerTest extends Jalview2xmlBase
{
* causes features, annotation and positions to be remapped to the wrong place
* on viewing the structure
*/
- @Test(groups = { "Functional" })
+ @Test(groups = { "Network" })
public void testMapping_EqualsFeatures()
{
+ // for some reason 'BeforeMethod' (which should be inherited from
+ // Jalview2XmlBase isn't always called)...
+ Desktop.instance.closeAll_actionPerformed(null);
+ try {
+ Thread.sleep(200);
+ } catch (Exception foo) {};
SequenceI seq = new Sequence("4IM2|A",
"LDFCIRNIEKTVMGEISDIHTKLLRLSSSQGTIE");
String P4IM2_MISSING = "examples/testdata/4IM2_missing.pdb";
AlignFrame alf = new FileLoader(false).LoadFileWaitTillLoaded(
"examples/testdata/4IM2_missing.pdb", DataSourceType.FILE);
+ Desktop.addInternalFrame(alf, "examples/testdata/4IM2_missing.pdb", 800,
+ 400);
AlignmentI pdbal = alf.getViewport().getAlignment();
SequenceI pdb_viewseq = pdbal.getSequenceAt(0);
assertEquals(pdb_viewseq.getSequenceAsString(),
System.out.println(c);
}
}
-
}
private void verifySeqFeats(SequenceI pdbseq, int[] offset,
}
- @Test(groups= {"Network"})
+ @Test(groups = { "Network" })
public void testAssociatedMappingToSubSeq() throws Exception
{
SiftsSettings.setMapWithSifts(true);
StructureImportSettings.setProcessSecondaryStructure(true);
StructureImportSettings.setVisibleChainAnnotation(true);
- openStructureViaChooser(alf, seq, PDBID);
+ JalviewStructureDisplayI sview = openStructureViaChooser(alf, seq,
+ PDBID);
AlignmentAnnotation subseq_tf=null;
assertTrue(seq.getDBRefs() != null && seq.getDBRefs().length > 0);
;
}
-
}
private JalviewStructureDisplayI openStructureViaChooser(AlignFrame alf,