1 package jalview.datamodel.xdb.embl;
3 import static org.testng.AssertJUnit.assertEquals;
5 import java.util.Arrays;
7 import org.testng.annotations.Test;
9 public class EmblEntryTest
11 @Test(groups = "Functional")
12 public void testGetCdsRanges()
14 EmblEntry testee = new EmblEntry();
17 * Make a (CDS) Feature with 4 locations
19 EmblFeature cds = new EmblFeature();
20 cds.setLocation("join(10..20,complement(30..40),50..60,70..80,complement(110..120))");
22 int[] exons = testee.getCdsRanges(cds);
23 assertEquals("[10, 20, 40, 30, 50, 60, 70, 80, 120, 110]",
24 Arrays.toString(exons));