package jalview.datamodel;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.fail;
+import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertFalse;
+
import jalview.util.MapList;
import java.util.Iterator;
-import org.junit.Test;
+import org.testng.Assert;
+import org.testng.annotations.Test;
/**
* Unit tests for Mapping$AlignedCodonIterator
/**
* Test normal case for iterating over aligned codons.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testNext()
{
SequenceI from = new Sequence("Seq1", "-CgC-C-cCtAG-AtG-Gc");
/**
* Test weird case where the mapping skips over a peptide.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testNext_unmappedPeptide()
{
SequenceI from = new Sequence("Seq1", "-CgC-C-cCtAG-AtG-Gc");
/**
* Test for exception thrown for an incomplete codon.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testNext_incompleteCodon()
{
SequenceI from = new Sequence("Seq1", "-CgC-C-cCgTt");
try
{
codon = codons.next();
- fail("expected exception");
+ Assert.fail("expected exception");
} catch (IncompleteCodonException e)
{
// expected
/**
* Test normal case for iterating over aligned codons.
*/
- @Test
+ @Test(groups ={ "Functional" })
public void testAnother()
{
SequenceI from = new Sequence("Seq1", "TGCCATTACCAG-");