package jalview.util;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertFalse;
+import static org.testng.AssertJUnit.assertNull;
+import static org.testng.AssertJUnit.assertTrue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import org.junit.Assert;
-import org.junit.Test;
+import org.testng.annotations.Test;
public class MapListTest
{
- @Test
+ @Test(groups ={ "Functional" })
public void testSomething()
{
MapList ml = new MapList(new int[]
private static void testLocateFrom(MapList mldna, int i, int j, int[] ks)
{
int[] frm = mldna.locateInFrom(i, j);
- Assert.assertEquals("Failed test locate from " + i + " to " + j,
+ assertEquals("Failed test locate from " + i + " to " + j,
Arrays.toString(frm), Arrays.toString(ks));
}
* Tests for method that locates ranges in the 'from' map for given range in
* the 'to' map.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testLocateInFrom_noIntrons()
{
/*
* Tests for method that locates ranges in the 'from' map for given range in
* the 'to' map.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testLocateInFrom_withIntrons()
{
/*
* Tests for method that locates ranges in the 'to' map for given range in the
* 'from' map.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testLocateInTo_noIntrons()
{
/*
* Tests for method that locates ranges in the 'to' map for given range in the
* 'from' map.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testLocateInTo_withIntrons()
{
/*
/**
* Test equals method.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testEquals()
{
int[] codons = new int[]
/**
* Test for the method that flattens a list of ranges into a single array.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testGetRanges()
{
List<int[]> ranges = new ArrayList<int[]>();
/**
* Check state after construction
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testConstructor()
{
int[] codons =
/**
* Test the method that creates an inverse mapping
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testGetInverse()
{
int[] codons =
prettyPrint(ml2.getFromRanges()));
}
- @Test
+ @Test(groups ={ "Functional" })
public void testToString()
{
MapList ml = new MapList(new int[]