package jalview.structure;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertTrue;
+
import jalview.datamodel.AlignedCodonFrame;
import java.util.HashSet;
import java.util.Set;
-import org.junit.Before;
-import org.junit.Test;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
public class StructureSelectionManagerTest
{
private StructureSelectionManager ssm;
- @Before
+ @BeforeMethod
public void setUp()
{
ssm = new StructureSelectionManager();
}
- @Test
+ @Test(groups ={ "Functional" })
public void testAddMapping()
{
AlignedCodonFrame acf1 = new AlignedCodonFrame();
assertEquals(1, ssm.seqMappingRefCounts.get(acf2).intValue());
}
- @Test
+ @Test(groups ={ "Functional" })
public void testAddMappings()
{
AlignedCodonFrame acf1 = new AlignedCodonFrame();
assertEquals(1, ssm.seqMappingRefCounts.get(acf3).intValue());
}
- @Test
+ @Test(groups ={ "Functional" })
public void testRemoveMapping()
{
AlignedCodonFrame acf1 = new AlignedCodonFrame();
assertEquals(0, ssm.seqMappingRefCounts.size());
}
- @Test
+ @Test(groups ={ "Functional" })
public void testRemoveMappings()
{
AlignedCodonFrame acf1 = new AlignedCodonFrame();