git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3383 JAL-3253-applet
[jalview.git]
/
test
/
jalview
/
ext
/
paradise
/
TestAnnotate3D.java
diff --git
a/test/jalview/ext/paradise/TestAnnotate3D.java
b/test/jalview/ext/paradise/TestAnnotate3D.java
index
c2be67e
..
7d0916b
100644
(file)
--- a/
test/jalview/ext/paradise/TestAnnotate3D.java
+++ b/
test/jalview/ext/paradise/TestAnnotate3D.java
@@
-24,6
+24,7
@@
import static org.testng.AssertJUnit.assertTrue;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceI;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceI;
+import jalview.gui.JvOptionPane;
import jalview.io.DataSourceType;
import jalview.io.FastaFile;
import jalview.io.FileFormat;
import jalview.io.DataSourceType;
import jalview.io.FastaFile;
import jalview.io.FileFormat;
@@
-36,15
+37,22
@@
import java.util.Iterator;
import org.testng.Assert;
import org.testng.AssertJUnit;
import org.testng.Assert;
import org.testng.AssertJUnit;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import org.testng.annotations.Test;
-import MCview.PDBfile;
-
import compbio.util.FileUtil;
import compbio.util.FileUtil;
+import mc_view.PDBfile;
public class TestAnnotate3D
{
public class TestAnnotate3D
{
+ @BeforeClass(alwaysRun = true)
+ public void setUpJvOptionPane()
+ {
+ JvOptionPane.setInteractiveMode(false);
+ JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+ }
+
@Test(groups = { "Network" }, enabled = true)
public void test1GIDbyId() throws Exception
{
@Test(groups = { "Network" }, enabled = true)
public void test1GIDbyId() throws Exception
{
@@
-143,10
+151,10
@@
public class TestAnnotate3D
{
{
SequenceI struseq = null;
{
{
SequenceI struseq = null;
- String sq_ = new String(sq.getSequence()).toLowerCase();
+ String sq_ = sq.getSequenceAsString().toLowerCase();
for (SequenceI _struseq : pdbf.getSeqsAsArray())
{
for (SequenceI _struseq : pdbf.getSeqsAsArray())
{
- final String lowerCase = new String(_struseq.getSequence())
+ final String lowerCase = _struseq.getSequenceAsString()
.toLowerCase();
if (lowerCase.equals(sq_))
{
.toLowerCase();
if (lowerCase.equals(sq_))
{
@@
-158,11
+166,11
@@
public class TestAnnotate3D
{
AssertJUnit
.fail("Couldn't find this sequence in original input:\n"
{
AssertJUnit
.fail("Couldn't find this sequence in original input:\n"
- + new FastaFile()
- .print(new SequenceI[] { sq })
+ + new FastaFile().print(
+ new SequenceI[] { sq }, true)
+ "\n\nOriginal input:\n"
+ "\n\nOriginal input:\n"
- + new FastaFile().print(pdbf.getSeqsAsArray())
- + "\n");
+ + new FastaFile().print(
+ pdbf.getSeqsAsArray(), true) + "\n");
}
}
}
}
}
}