*/
package jalview.io;
-import static org.junit.Assert.*;
-
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.Test;
+import org.testng.annotations.BeforeClass;
+import org.testng.AssertJUnit;
import java.io.File;
import java.io.IOException;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
/**
* @author jimp
*
private void assertValidFormat(String fmt, String src, FileParse fp)
{
- assertTrue("Couldn't resolve " + src + " as a valid file", fp.isValid());
+ AssertJUnit.assertTrue("Couldn't resolve " + src + " as a valid file", fp.isValid());
String type = new IdentifyFile().Identify(fp);
- assertTrue("Data from '" + src + "' Expected to be '" + fmt
+ AssertJUnit.assertTrue("Data from '" + src + "' Expected to be '" + fmt
+ "' identified as '" + type + "'", type.equalsIgnoreCase(fmt));
}