git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba0beda
)
JAL-1782 BeforeMethod added to fix test in NG
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 26 Jun 2015 15:59:39 +0000
(16:59 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 26 Jun 2015 15:59:39 +0000
(16:59 +0100)
test/MCview/PDBChainTest.java
patch
|
blob
|
history
diff --git
a/test/MCview/PDBChainTest.java
b/test/MCview/PDBChainTest.java
index
0df7851
..
07f9bd5
100644
(file)
--- 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 java.awt.Color;
import java.util.Vector;
+import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class PDBChainTest
{
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()
@Test
public void testGetNewlineString()