X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2FMCview%2FPDBfileTest.java;h=286364376009172d8272981524d0ab8fa09d6ec6;hb=3d269085ae54cdae1120ee11e41c48c9077608b6;hp=0fc7d1c6486f821e8a57655d544bd5f9a5953599;hpb=f213422632d268e3a2f334255fa705d8e931866f;p=jalview.git diff --git a/test/MCview/PDBfileTest.java b/test/MCview/PDBfileTest.java index 0fc7d1c..2863643 100644 --- a/test/MCview/PDBfileTest.java +++ b/test/MCview/PDBfileTest.java @@ -26,6 +26,7 @@ import static org.testng.AssertJUnit.assertNull; import static org.testng.AssertJUnit.assertSame; import static org.testng.AssertJUnit.assertTrue; +import jalview.bin.Cache; import jalview.datamodel.Alignment; import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.AlignmentI; @@ -33,10 +34,12 @@ import jalview.datamodel.PDBEntry; import jalview.datamodel.Sequence; import jalview.datamodel.SequenceI; import jalview.io.AppletFormatAdapter; +import jalview.structure.StructureImportSettings; import java.io.IOException; import java.util.List; +import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class PDBfileTest @@ -253,10 +256,10 @@ public class PDBfileTest /* * PDBFileWithJmol (unlike PDBChain!) leaves PDB id upper case */ - assertEquals("Secondary Structure for 3W5VA", anns[0].description); - assertEquals("Secondary Structure for 3W5VB", anns[2].description); - assertEquals("Secondary Structure for 3W5VC", anns[4].description); - assertEquals("Secondary Structure for 3W5VD", anns[6].description); + assertEquals("Secondary Structure for 3w5vA", anns[0].description); + assertEquals("Secondary Structure for 3w5vB", anns[2].description); + assertEquals("Secondary Structure for 3w5vC", anns[4].description); + assertEquals("Secondary Structure for 3w5vD", anns[6].description); /* * Verify SS annotations are linked to respective sequences (chains) @@ -307,4 +310,19 @@ public class PDBfileTest pf.addAnnotations(al); return al.getAlignmentAnnotation(); } + + // @formatter:on + + @BeforeMethod(alwaysRun = true) + public void setUp() + { + Cache.loadProperties("test/jalview/io/testProps.jvprops"); + Cache.applicationProperties.setProperty("STRUCT_FROM_PDB", + Boolean.TRUE.toString()); + Cache.applicationProperties.setProperty("ADD_TEMPFACT_ANN", + Boolean.TRUE.toString()); + Cache.applicationProperties.setProperty("ADD_SS_ANN", + Boolean.TRUE.toString()); + StructureImportSettings.setDefaultStructureFileFormat("PDB"); + } }