X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fjalview%2Fdatamodel%2FAllColsIteratorTest.java;h=3394794cbf0f4045e30ddaf556b37b7eace1e55f;hb=35d4141c06ba40f0b426dcd3887ec96e46356747;hp=3942f0b37185d3f5ac42514b78c26dc9db8b50e8;hpb=18565b7cf82c50da2d6266f885fa6ebef929db79;p=jalview.git diff --git a/test/jalview/datamodel/AllColsIteratorTest.java b/test/jalview/datamodel/AllColsIteratorTest.java index 3942f0b..3394794 100644 --- a/test/jalview/datamodel/AllColsIteratorTest.java +++ b/test/jalview/datamodel/AllColsIteratorTest.java @@ -30,14 +30,13 @@ import org.testng.annotations.Test; public class AllColsIteratorTest { HiddenColumns hiddenCols; - - @BeforeClass + + @BeforeClass(alwaysRun = true) public void setup() { hiddenCols = new HiddenColumns(); - hiddenCols.hideColumns(2,4); + hiddenCols.hideColumns(2, 4); } - /* * Test iterator iterates through collection correctly @@ -59,8 +58,10 @@ public class AllColsIteratorTest * Test iterator throws NoSuchElementException at end of iteration */ @Test( - groups = { "Functional" }, - expectedExceptions = { NoSuchElementException.class }) + groups = + { "Functional" }, + expectedExceptions = + { NoSuchElementException.class }) public void testLastNext() throws NoSuchElementException { AllColsIterator it = new AllColsIterator(0, 3, hiddenCols); @@ -75,8 +76,10 @@ public class AllColsIteratorTest * Test iterator throws UnsupportedOperationException on call to remove */ @Test( - groups = { "Functional" }, - expectedExceptions = { UnsupportedOperationException.class }) + groups = + { "Functional" }, + expectedExceptions = + { UnsupportedOperationException.class }) public void testRemove() throws UnsupportedOperationException { AllColsIterator it = new AllColsIterator(0, 3, hiddenCols);