JAL-2113 corrected test to use valid location syntax
[jalview.git] / test / jalview / datamodel / xdb / embl / EmblEntryTest.java
1 package jalview.datamodel.xdb.embl;
2
3 import static org.testng.AssertJUnit.assertEquals;
4
5 import java.util.Arrays;
6
7 import org.testng.annotations.Test;
8
9 public class EmblEntryTest
10 {
11   @Test(groups = "Functional")
12   public void testGetCdsRanges()
13   {
14     EmblEntry testee = new EmblEntry();
15
16     /*
17      * Make a (CDS) Feature with 4 locations
18      */
19     EmblFeature cds = new EmblFeature();
20     cds.setLocation("join(10..20,complement(30..40),50..60,70..80,complement(110..120))");
21
22     int[] exons = testee.getCdsRanges(cds);
23     assertEquals("[10, 20, 40, 30, 50, 60, 70, 80, 120, 110]",
24             Arrays.toString(exons));
25   }
26 }