JAL-3148 show/hide features on structure independent of alignment
[jalview.git] / test / jalview / structure / StructureSelectionManagerTest.java
index a882bce..2e9e873 100644 (file)
@@ -27,6 +27,7 @@ import static org.testng.AssertJUnit.assertTrue;
 
 import jalview.analysis.AlignmentUtils;
 import jalview.api.structures.JalviewStructureDisplayI;
+import jalview.bin.Cache;
 import jalview.datamodel.AlignedCodonFrame;
 import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.AlignmentI;
@@ -46,6 +47,7 @@ import jalview.io.FileLoader;
 import jalview.io.Jalview2xmlBase;
 import jalview.io.StructureFile;
 import jalview.util.MapList;
+import jalview.ws.DBRefFetcher;
 import jalview.ws.sifts.SiftsSettings;
 
 import java.util.ArrayList;
@@ -318,7 +320,7 @@ public class StructureSelectionManagerTest extends Jalview2xmlBase
             new SequenceI[][]
             { new SequenceI[] { pdb_viewseq } },
                     new SequenceRenderer(alf.alignPanel.getAlignViewport()),
-                    alf.alignPanel);
+                    alf.alignPanel, false);
     // Expected - all residues are white
     for (StructureMappingcommandSet smm : smcr)
     {
@@ -349,6 +351,9 @@ public class StructureSelectionManagerTest extends Jalview2xmlBase
   public void testAssociatedMappingToSubSeq() throws Exception
   {
 
+    // currently this test fails if trimming is enabled
+    Cache.setProperty(DBRefFetcher.TRIM_RETRIEVED_SEQUENCES,
+            Boolean.FALSE.toString());
     String TEMP_FACTOR_AA="Temperature Factor";
     String PDBID = "4IM2";
     String FullLengthSeq = ">TBK1_HUMAN Serine/threonine-protein kinase TBK1\n" +