import java.util.ArrayList;
import java.util.Arrays;
-import org.junit.Assert;
-import org.junit.Test;
+import org.testng.AssertJUnit;
+import org.testng.annotations.Test;
public class GroupingTest
{
int[] positions = new int[]
{ 1, 7, 9 };
- @Test
+ @Test(groups ={ "Functional" })
public void testMakeGroupsWithBoth()
{
ArrayList<String> str = new ArrayList<String>();
alignment.getSequencesArray(), cs,
Arrays.asList(new SequenceGroup[]
{ sg1, sg2 }));
- Assert.assertEquals(seqgroupsString.length, seqgroupsColSel.length);
+ AssertJUnit.assertEquals(seqgroupsString.length, seqgroupsColSel.length);
for (int p = 0; p < seqgroupsString.length; p++)
{
- Assert.assertEquals(seqgroupsString[p].getName(),
+ AssertJUnit.assertEquals(seqgroupsString[p].getName(),
seqgroupsColSel[p].getName());
- Assert.assertArrayEquals(
+ AssertJUnit.assertArrayEquals(
seqgroupsString[p].getSequencesInOrder(alignment),
seqgroupsColSel[p].getSequencesInOrder(alignment));
if (seqgroupsString[p].getSequences().contains(s2))
{
- Assert.assertTrue(seqgroupsString[p].getSize() == 2);
+ AssertJUnit.assertTrue(seqgroupsString[p].getSize() == 2);
}
}
}