X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fws%2Fjabaws%2FDisorderAnnotExportImport.java;h=557ef7e1ae7b32372c6e0c980cbd04e7dd90397b;hb=1ce6886ff239dba3c3555aa73456269fae33d53a;hp=e561479beec1700ad8f2a11292e753ceb3296d54;hpb=43c78e88653d6b6d14920abf9fa23733ece55c1f;p=jalview.git diff --git a/test/jalview/ws/jabaws/DisorderAnnotExportImport.java b/test/jalview/ws/jabaws/DisorderAnnotExportImport.java index e561479..557ef7e 100644 --- a/test/jalview/ws/jabaws/DisorderAnnotExportImport.java +++ b/test/jalview/ws/jabaws/DisorderAnnotExportImport.java @@ -20,9 +20,9 @@ */ package jalview.ws.jabaws; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; +import static org.testng.AssertJUnit.assertNotNull; +import static org.testng.AssertJUnit.assertTrue; + import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.AlignmentI; import jalview.io.AnnotationFile; @@ -35,10 +35,12 @@ import jalview.ws.jws2.jabaws2.Jws2Instance; import java.util.ArrayList; import java.util.List; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; +import org.testng.Assert; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; +@Test(groups = { "External" }) public class DisorderAnnotExportImport { public static String testseqs = "examples/uniref50.fa"; @@ -51,7 +53,7 @@ public class DisorderAnnotExportImport public static jalview.gui.AlignFrame af = null; - @BeforeClass + @BeforeClass(inheritGroups = true) public static void setUpBeforeClass() throws Exception { @@ -72,13 +74,14 @@ public class DisorderAnnotExportImport assertNotNull("Couldn't load test data ('" + testseqs + "')", af); } - @AfterClass + @AfterClass(alwaysRun = true) public static void tearDownAfterClass() throws Exception { if (af != null) { af.setVisible(false); af.dispose(); + af = null; } } @@ -157,7 +160,7 @@ public class DisorderAnnotExportImport { e.printStackTrace(); } - fail("Test " + Assert.fail("Test " + testname + "\nCouldn't complete Annotation file roundtrip input/output/input test."); }