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()
{
.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));