X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=test%2FMCview%2FAtomTest.java;h=2e6551c4eb16ef7023cfac3c6b7bdc1ab55ab2ef;hb=ab22918ab8fc67d30dad1fb1ae0f37e51f49df95;hp=8c271b38faf4df2201b76a5767ec6071c20a2295;hpb=c777b335d0332979123446f431b7f0c160eb4880;p=jalview.git diff --git a/test/MCview/AtomTest.java b/test/MCview/AtomTest.java index 8c271b3..2e6551c 100644 --- a/test/MCview/AtomTest.java +++ b/test/MCview/AtomTest.java @@ -1,9 +1,9 @@ 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 { @@ -12,7 +12,7 @@ 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( @@ -35,7 +35,7 @@ public class AtomTest * 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( @@ -47,14 +47,14 @@ public class AtomTest /** * 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