JAL-3858 improved contactInterval computation and added detailed test coverage for...
[jalview.git] / test / jalview / datamodel / VisibleRowsIteratorTest.java
index da93dab..32c6b2d 100644 (file)
@@ -42,7 +42,7 @@ public class VisibleRowsIteratorTest
 
   Hashtable<SequenceI, SequenceCollectionI> hiddenRepSequences2 = new Hashtable<SequenceI, SequenceCollectionI>();
 
-  @BeforeClass
+  @BeforeClass(groups = { "Functional" })
   public void setup()
   {
     // create random alignment
@@ -137,8 +137,10 @@ public class VisibleRowsIteratorTest
    * when alignment has hidden rows
    */
   @Test(
-    groups = { "Functional" },
-    expectedExceptions = { NoSuchElementException.class })
+    groups =
+    { "Functional" },
+    expectedExceptions =
+    { NoSuchElementException.class })
   public void testLastNextWithHidden() throws NoSuchElementException
   {
     VisibleRowsIterator it = new VisibleRowsIterator(0, 3, al);
@@ -154,8 +156,10 @@ public class VisibleRowsIteratorTest
    * when alignment has no hidden rows
    */
   @Test(
-    groups = { "Functional" },
-    expectedExceptions = { NoSuchElementException.class })
+    groups =
+    { "Functional" },
+    expectedExceptions =
+    { NoSuchElementException.class })
   public void testLastNextNoHidden() throws NoSuchElementException
   {
     VisibleRowsIterator it = new VisibleRowsIterator(0, 3, al3);
@@ -171,8 +175,10 @@ public class VisibleRowsIteratorTest
    * when alignment has hidden rows at start
    */
   @Test(
-    groups = { "Functional" },
-    expectedExceptions = { NoSuchElementException.class })
+    groups =
+    { "Functional" },
+    expectedExceptions =
+    { NoSuchElementException.class })
   public void testLastNextStartHidden() throws NoSuchElementException
   {
     VisibleRowsIterator it = new VisibleRowsIterator(0, 3, al2);
@@ -188,8 +194,10 @@ public class VisibleRowsIteratorTest
    * when alignment has hidden rows at end
    */
   @Test(
-    groups = { "Functional" },
-    expectedExceptions = { NoSuchElementException.class })
+    groups =
+    { "Functional" },
+    expectedExceptions =
+    { NoSuchElementException.class })
   public void testLastNextEndHidden() throws NoSuchElementException
   {
     VisibleRowsIterator it = new VisibleRowsIterator(0, 4, al);
@@ -204,8 +212,10 @@ public class VisibleRowsIteratorTest
    * Test calls to remove throw UnsupportedOperationException
    */
   @Test(
-    groups = { "Functional" },
-    expectedExceptions = { UnsupportedOperationException.class })
+    groups =
+    { "Functional" },
+    expectedExceptions =
+    { UnsupportedOperationException.class })
   public void testRemove() throws UnsupportedOperationException
   {
     VisibleRowsIterator it = new VisibleRowsIterator(0, 3, al);