JAL-2164 JAL-1919 JAL-1270 use structure import settings to properly configure for...
authorJim Procter <jprocter@issues.jalview.org>
Mon, 1 Aug 2016 20:13:22 +0000 (21:13 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 1 Aug 2016 20:13:22 +0000 (21:13 +0100)
test/jalview/io/Jalview2xmlTests.java

index ddc615f..31e1a35 100644 (file)
@@ -275,10 +275,8 @@ public class Jalview2xmlTests
   @Test(groups = { "Functional" })
   public void viewRefPdbAnnotation() throws Exception
   {
-    Cache.applicationProperties.setProperty("STRUCT_FROM_PDB",
-            Boolean.TRUE.toString());
-    Cache.applicationProperties.setProperty("ADD_SS_ANN",
-            Boolean.TRUE.toString());
+    StructureImportSettings.setProcessSecondaryStructure(true);
+    StructureImportSettings.setVisibleChainAnnotation(true);
     AlignFrame af = new jalview.io.FileLoader().LoadFileWaitTillLoaded(
             "examples/exampleFile_2_7.jar", FormatAdapter.FILE);
     assertTrue("Didn't read in the example file correctly.", af != null);