JAL-1926 JAL-2106 fix name for flag controlling addition of secondary structure annot...
[jalview.git] / test / jalview / io / AnnotatedPDBFileInputTest.java
index c472576..3524a88 100644 (file)
@@ -31,6 +31,7 @@ import jalview.datamodel.PDBEntry;
 import jalview.datamodel.SequenceFeature;
 import jalview.datamodel.SequenceI;
 import jalview.gui.AlignFrame;
+import jalview.structure.StructureImportSettings;
 
 import java.io.File;
 
@@ -65,6 +66,7 @@ public class AnnotatedPDBFileInputTest
     al = af.getViewport().getAlignment();
     pdbId = al.getSequenceAt(0).getDatasetSequence().getAllPDBEntries()
             .get(0).getId();
+    StructureImportSettings.setCurrentDefaultFormat("PDB");
   }
 
   @Test(groups = { "Functional" })
@@ -180,7 +182,7 @@ public class AnnotatedPDBFileInputTest
   /**
    * @throws java.lang.Exception
    */
-  @AfterClass
+  @AfterClass(alwaysRun = true)
   public static void tearDownAfterClass() throws Exception
   {
     jalview.gui.Desktop.instance.closeAll_actionPerformed(null);