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-1270 JUnit to TestNG refactoring
[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
3365c52
..
d4f57d8
100644
(file)
--- a/
test/jalview/ext/paradise/TestAnnotate3D.java
+++ b/
test/jalview/ext/paradise/TestAnnotate3D.java
@@
-20,17
+20,19
@@
*/
package jalview.ext.paradise;
*/
package jalview.ext.paradise;
-import static org.junit.Assert.assertTrue;
+import static org.testng.AssertJUnit.assertTrue;
import java.io.BufferedReader;
import java.io.File;
import java.io.Reader;
import java.util.Iterator;
import java.io.BufferedReader;
import java.io.File;
import java.io.Reader;
import java.util.Iterator;
-import org.junit.Assert;
-import org.junit.Test;
+import org.testng.Assert;
+import org.testng.AssertJUnit;
+import org.testng.annotations.Test;
import MCview.PDBfile;
import MCview.PDBfile;
+
import compbio.util.FileUtil;
import jalview.datamodel.AlignmentI;
import compbio.util.FileUtil;
import jalview.datamodel.AlignmentI;
@@
-41,7
+43,7
@@
import jalview.io.FormatAdapter;
public class TestAnnotate3D
{
public class TestAnnotate3D
{
- @Test
+ @Test(enabled = false)
public void test1GIDbyId() throws Exception
{
// use same ID as standard tests given at
public void test1GIDbyId() throws Exception
{
// use same ID as standard tests given at
@@
-51,7
+53,7
@@
public class TestAnnotate3D
testRNAMLcontent(ids, null);
}
testRNAMLcontent(ids, null);
}
- @Test
+ @Test(enabled = false)
public void testIdVsContent2GIS() throws Exception
{
Iterator<Reader> ids = Annotate3D.getRNAMLForPDBId("2GIS");
public void testIdVsContent2GIS() throws Exception
{
Iterator<Reader> ids = Annotate3D.getRNAMLForPDBId("2GIS");
@@
-95,7
+97,7
@@
public class TestAnnotate3D
*
* @throws Exception
*/
*
* @throws Exception
*/
- @Test
+ @Test(enabled = false)
public void testPDBfileVsRNAML() throws Exception
{
PDBfile pdbf = new PDBfile(true, false, true, "examples/2GIS.pdb",
public void testPDBfileVsRNAML() throws Exception
{
PDBfile pdbf = new PDBfile(true, false, true, "examples/2GIS.pdb",
@@
-109,6
+111,7
@@
public class TestAnnotate3D
testRNAMLcontent(readers, pdbf);
}
testRNAMLcontent(readers, pdbf);
}
+ @Test(enabled = false)
private void testRNAMLcontent(Iterator<Reader> readers, PDBfile pdbf)
throws Exception
{
private void testRNAMLcontent(Iterator<Reader> readers, PDBfile pdbf)
throws Exception
{
@@
-152,7
+155,7
@@
public class TestAnnotate3D
}
if (struseq == null)
{
}
if (struseq == null)
{
- Assert.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 })
+ "\n\nOriginal input:\n"
+ new FastaFile().print(new SequenceI[]
{ sq })
+ "\n\nOriginal input:\n"