From: gmungoc Date: Fri, 26 Jun 2015 15:59:39 +0000 (+0100) Subject: JAL-1782 BeforeMethod added to fix test in NG X-Git-Tag: Release_2_10_0~594 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c54581c9ab50f031fe6400fa4f578a44f1f55798;p=jalview.git JAL-1782 BeforeMethod added to fix test in NG --- diff --git a/test/MCview/PDBChainTest.java b/test/MCview/PDBChainTest.java index 0df7851..07f9bd5 100644 --- a/test/MCview/PDBChainTest.java +++ b/test/MCview/PDBChainTest.java @@ -16,19 +16,27 @@ import jalview.schemes.TaylorColourScheme; import java.awt.Color; import java.util.Vector; +import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class PDBChainTest { - PDBChain c = new PDBChain("1GAQ", "A"); + PDBChain c; - Atom a1 = new Atom(1f, 2f, 3f); + final Atom a1 = new Atom(1f, 2f, 3f); - Atom a2 = new Atom(5f, 6f, 4f); + final Atom a2 = new Atom(5f, 6f, 4f); - Atom a3 = new Atom(2f, 5f, 6f); + final Atom a3 = new Atom(2f, 5f, 6f); - Atom a4 = new Atom(2f, 1f, 7f); + final Atom a4 = new Atom(2f, 1f, 7f); + + @BeforeMethod + public void setUp() + { + System.out.println("setup"); + c = new PDBChain("1GAQ", "A"); + } @Test public void testGetNewlineString()