@Test public void testDeepCopyOptionsNullBaseUrl() { Options options = new Options(); options.setBaseUrl(null); sequence.setOptions(options); Sequence copy = sequence.deepCopy(); assertNotNull(copy.getOptions()); assertNull(copy.getOptions().getBaseUrl()); }
@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)); }
@Test public void testDeepCopyNullOptions() { sequence.setOptions(null); Sequence copy = sequence.deepCopy(); assertNull(copy.getOptions()); }