Ejemplo n.º 1
0
 @Before
 public void setUp() {
   sequence = new Sequence();
   sequence.setLength(42);
   Options options = new Options();
   options.setBaseUrl("baseUrl");
   sequence.setOptions(options);
   Markup markup = new Markup();
   markup.setStart(24);
   sequence.setMarkups(ImmutableList.of(markup));
   Map<String, Object> metadata = newHashMap();
   metadata.put("key", "value");
   sequence.setMetadata(metadata);
   Motif motif = new Motif();
   motif.setStart(24);
   sequence.setMotifs(ImmutableList.of(motif));
   Region region = new Region();
   region.setStart(24);
   sequence.setRegions(ImmutableList.of(region));
 }
Ejemplo n.º 2
0
 @Test
 public void testDeepCopyNullRegions() {
   sequence.setRegions(null);
   Sequence copy = sequence.deepCopy();
   assertNull(copy.getRegions());
 }