package MCview;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.testng.AssertJUnit.assertEquals;
-import org.junit.Test;
+import org.testng.Assert;
+import org.testng.annotations.Test;
public class AtomTest
{
* Test the constructor that parses a PDB file format ATOM line. Fields are in
* fixed column positions
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testStringConstructor()
{
Atom a = new Atom(
* Test the case where occupancy and temp factor are blank - should default to
* 1
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testStringConstructor_blankOccupancyTempFactor()
{
Atom a = new Atom(
/**
* Parsing non-numeric data as Atom throws an exception
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testStringConstructor_malformed()
{
try
{
new Atom(
"ATOM 34N NE2 GLN A 48 22.290 8.595 17.680 1.00 14.30 N");
- fail("Expected exception");
+ Assert.fail("Expected exception");
} catch (NumberFormatException e)
{
// expected