X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fext%2Fjmol%2FPDBFileWithJmolTest.java;h=87078a938fc8bf7f838216568afe5cddc6433d28;hb=3412b273e964fb1a9d22564b04a5f0c827ec2461;hp=7bcf9023b046f95e1020ab81ccaa029717682c4d;hpb=13317fa1bc7bf640dc1967ce4438676e89390ad3;p=jalview.git diff --git a/test/jalview/ext/jmol/PDBFileWithJmolTest.java b/test/jalview/ext/jmol/PDBFileWithJmolTest.java index 7bcf902..87078a9 100644 --- a/test/jalview/ext/jmol/PDBFileWithJmolTest.java +++ b/test/jalview/ext/jmol/PDBFileWithJmolTest.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -20,8 +20,15 @@ */ package jalview.ext.jmol; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.testng.AssertJUnit.assertEquals; +import static org.testng.AssertJUnit.assertTrue; +import org.testng.annotations.Test; +import org.testng.annotations.BeforeMethod; +import java.util.Vector; + +import MCview.PDBfile; + +import jalview.bin.Cache; import jalview.datamodel.Alignment; import jalview.datamodel.AlignmentI; import jalview.datamodel.SequenceI; @@ -29,12 +36,6 @@ import jalview.gui.AlignFrame; import jalview.io.AppletFormatAdapter; import jalview.io.FileLoader; -import java.util.Vector; - -import org.junit.Test; - -import MCview.PDBfile; - /** * @author jimp * @@ -47,6 +48,15 @@ public class PDBFileWithJmolTest // "./examples/DNMT1_MOUSE.pdb" // }; + @BeforeMethod + public void setUp() + { + Cache.applicationProperties.setProperty("STRUCT_FROM_PDB", + Boolean.TRUE.toString()); + Cache.applicationProperties.setProperty("ADD_SS_ANN", + Boolean.TRUE.toString()); + } + @Test public void testAlignmentLoader() throws Exception {