JAL-1805 add group spec to the BeforeMethod setup - updated the TESTNG entry to show...
[jalview.git] / test / jalview / commands / EditCommandTest.java
index 6c570d5..ee2a581 100644 (file)
@@ -30,7 +30,8 @@ public class EditCommandTest
 
   private Alignment al;
 
-  @BeforeMethod
+  @BeforeMethod(groups =
+  { "Functional" })
   public void setUp()
   {
     testee = new EditCommand();
@@ -50,7 +51,7 @@ public class EditCommandTest
   /**
    * Test inserting gap characters
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testAppendEdit_insertGap()
   {
     // set a non-standard gap character to prove it is actually used
@@ -67,7 +68,7 @@ public class EditCommandTest
    * Test deleting characters from sequences. Note the deleteGap() action does
    * not check that only gap characters are being removed.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testAppendEdit_deleteGap()
   {
     testee.appendEdit(Action.DELETE_GAP, seqs, 4, 3, al, true);
@@ -81,7 +82,7 @@ public class EditCommandTest
    * Test a cut action. The command should store the cut characters to support
    * undo.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testCut()
   {
     Edit ec = testee.new Edit(Action.CUT, seqs, 4, 3, al);
@@ -102,7 +103,8 @@ public class EditCommandTest
   /**
    * Test a Paste action, where this adds sequences to an alignment.
    */
-  @Test(enabled = false)
+  @Test(groups =
+  { "Functional" }, enabled = false)
   // TODO fix so it works
   public void testPaste_addToAlignment()
   {
@@ -122,7 +124,7 @@ public class EditCommandTest
   /**
    * Test insertGap followed by undo command
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testUndo_insertGap()
   {
     // Edit ec = testee.new Edit(Action.INSERT_GAP, seqs, 4, 3, '?');
@@ -140,7 +142,7 @@ public class EditCommandTest
   /**
    * Test deleteGap followed by undo command
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testUndo_deleteGap()
   {
     testee.appendEdit(Action.DELETE_GAP, seqs, 4, 3, al, true);
@@ -158,7 +160,7 @@ public class EditCommandTest
   /**
    * Test several commands followed by an undo command
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testUndo_multipleCommands()
   {
     // delete positions 3/4/5 (counting from 1)
@@ -187,7 +189,7 @@ public class EditCommandTest
    * Unit test for JAL-1594 bug: click and drag sequence right to insert gaps -
    * undo did not remove them all.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testUndo_multipleInsertGaps()
   {
     testee.appendEdit(Action.INSERT_GAP, seqs, 4, 1, al, true);
@@ -205,7 +207,7 @@ public class EditCommandTest
   /**
    * Test cut followed by undo command
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testUndo_cut()
   {
     testee.appendEdit(Action.CUT, seqs, 4, 3, al, true);
@@ -222,7 +224,7 @@ public class EditCommandTest
   /**
    * Test the replace command (used to manually edit a sequence)
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testReplace()
   {
     // seem to need a dataset sequence on the edited sequence here
@@ -239,7 +241,7 @@ public class EditCommandTest
    * Test that the addEdit command correctly merges insert gap commands when
    * possible.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testAddEdit_multipleInsertGap()
   {
     /*
@@ -289,7 +291,7 @@ public class EditCommandTest
    * Test that the addEdit command correctly merges delete gap commands when
    * possible.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testAddEdit_multipleDeleteGap()
   {
     /*
@@ -346,7 +348,7 @@ public class EditCommandTest
    * case when they appear contiguous but are acting on different sequences.
    * They should not be merged.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testAddEdit_removeAllGaps()
   {
     seqs[0].setSequence("a???bcdefghjk");
@@ -367,7 +369,7 @@ public class EditCommandTest
    * Test that the addEdit command correctly merges insert gap commands acting
    * on a multi-sequence selection.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testAddEdit_groupInsertGaps()
   {
     /*
@@ -403,7 +405,7 @@ public class EditCommandTest
    * <li>last: --A--B-CDEF</li>
    * </ul>
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testPriorState_multipleInserts()
   {
     EditCommand command = new EditCommand();
@@ -431,7 +433,7 @@ public class EditCommandTest
    * <li>End: ABC</li>
    * </ul>
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testPriorState_removeAllGaps()
   {
     EditCommand command = new EditCommand();
@@ -452,7 +454,7 @@ public class EditCommandTest
   /**
    * Test for 'undoing' a single delete edit.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testPriorState_singleDelete()
   {
     EditCommand command = new EditCommand();
@@ -471,7 +473,7 @@ public class EditCommandTest
   /**
    * Test 'undoing' a single gap insertion edit command.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testPriorState_singleInsert()
   {
     EditCommand command = new EditCommand();
@@ -491,7 +493,7 @@ public class EditCommandTest
    * Test that mimics 'remove all gaps' action. This generates delete gap edits
    * for contiguous gaps in each sequence separately.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testPriorState_removeGapsMultipleSeqs()
   {
     EditCommand command = new EditCommand();
@@ -555,7 +557,7 @@ public class EditCommandTest
    * series Delete Gap edits that each act on all sequences that share a gapped
    * column region.
    */
-  @Test
+  @Test(groups ={ "Functional" })
   public void testPriorState_removeGappedCols()
   {
     EditCommand command = new EditCommand();