JAL-1782 JAL-1780 JAL-653 JAL-1892 update patched refactored test suite with TestNG
[jalview.git] / test / jalview / commands / EditCommandTest.java
index 6ea05e6..6c570d5 100644 (file)
@@ -1,7 +1,8 @@
 package jalview.commands;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertSame;
+import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertSame;
+
 import jalview.commands.EditCommand.Action;
 import jalview.commands.EditCommand.Edit;
 import jalview.datamodel.Alignment;
@@ -11,9 +12,8 @@ import jalview.datamodel.SequenceI;
 
 import java.util.Map;
 
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
 
 /**
  * Unit tests for EditCommand
@@ -30,7 +30,7 @@ public class EditCommandTest
 
   private Alignment al;
 
-  @Before
+  @BeforeMethod
   public void setUp()
   {
     testee = new EditCommand();
@@ -102,8 +102,7 @@ public class EditCommandTest
   /**
    * Test a Paste action, where this adds sequences to an alignment.
    */
-  @Test
-  @Ignore
+  @Test(enabled = false)
   // TODO fix so it works
   public void testPaste_addToAlignment()
   {