X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FFileFormatsTest.java;h=53f18bf20ba30ff0db4f0d1631976c7bf9586be4;hb=fe4ab7f363cfaed56db7c346f159f2d89ae4e66f;hp=ffc844cf914dd9f0de115331fa3a2e6c5c5961eb;hpb=c8b35bed08a4bd8688b762bd50f13195c1cfb1c6;p=jalview.git diff --git a/test/jalview/io/FileFormatsTest.java b/test/jalview/io/FileFormatsTest.java index ffc844c..53f18bf 100644 --- a/test/jalview/io/FileFormatsTest.java +++ b/test/jalview/io/FileFormatsTest.java @@ -10,16 +10,23 @@ import static org.testng.Assert.assertTrue; import java.util.Iterator; import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class FileFormatsTest { - @AfterMethod() + @AfterMethod(alwaysRun = true) public void tearDown() { FileFormats.getInstance().reset(); } + @BeforeMethod(alwaysRun = true) + public void setUp() + { + FileFormats.getInstance().reset(); + } + @Test(groups = "Functional") public void testIsIdentifiable() { @@ -30,7 +37,7 @@ public class FileFormatsTest .getName()))); assertTrue(formats.isIdentifiable(formats.forName(FileFormat.Jnet .getName()))); - assertFalse(formats.isIdentifiable(formats.forName(FileFormat.Jalview + assertTrue(formats.isIdentifiable(formats.forName(FileFormat.Jalview .getName()))); assertFalse(formats.isIdentifiable(null));