@Test public void testAddSequence() throws Exception { SmilResponse smilResponse = smilService.createNewSmil(); smilResponse = smilService.addSequence(smilResponse.getSmil()); assertNotNull(smilResponse.getSmil().getBody().getMediaElements().get(0)); assertEquals(smilResponse.getSmil().getBody().getMediaElements().get(0), smilResponse.getEntity()); assertTrue(smilResponse.getSmil().getBody().getMediaElements().get(0) instanceof SmilMediaSequenceImpl); SmilMediaContainer par = (SmilMediaContainer) smilResponse.getEntity(); assertTrue(par.isContainer()); assertSame(SmilMediaContainer.ContainerType.SEQ, par.getContainerType()); smilResponse = smilService.addSequence(smilResponse.getSmil(), smilResponse.getEntity().getId()); assertNotNull(smilResponse.getSmil().getBody().getMediaElements().get(0)); assertTrue(smilResponse.getSmil().getBody().getMediaElements().get(0) instanceof SmilMediaSequenceImpl); SmilMediaContainer parent = (SmilMediaContainer) smilResponse.getSmil().getBody().getMediaElements().get(0); assertNotNull(parent.getElements().get(0)); assertTrue(parent.getElements().get(0) instanceof SmilMediaSequenceImpl); assertEquals(parent.getElements().get(0).getId(), smilResponse.getEntity().getId()); }
@Override public SmilResponse addSequence(Smil smil) throws SmilException { return addSequence(smil, smil.getBody().getId()); }
SmilServiceImpl implements SmilService { @Override public SmilResponse addSequence(Smil smil) throws SmilException { return addSequence(smil, smil.getBody().getId()); } }
SmilServiceImpl implements SmilService { @Override public SmilResponse addSequence(Smil smil) throws SmilException { return addSequence(smil, smil.getBody().getId()); }  }
SmilServiceImpl implements SmilService { @Override public SmilResponse addSequence(Smil smil) throws SmilException { return addSequence(smil, smil.getBody().getId()); }  @Override SmilResponse createNewSmil(); @Override SmilResponse createNewSmil(MediaPackage mediaPackage); @Override SmilResponse addParallel(Smil smil); @Override SmilResponse addParallel(Smil smil, String parentId); @Override SmilResponse addSequence(Smil smil); @Override SmilResponse addSequence(Smil smil, String parentId); @Override SmilResponse addClip(Smil smil, String parentId, Track track, long start, long duration); @Override SmilResponse addClip(Smil smil, String parentId, Track track, long start, long duration, String pgId); @Override SmilResponse addClips(Smil smil, String parentId, Track[] tracks, long start, long duration); @Override SmilResponse addMeta(Smil smil, String name, String content); @Override SmilResponse removeSmilElement(Smil smil, String elementId); @Override SmilResponse fromXml(String smilXml); @Override SmilResponse fromXml(File smilXmlFile); }
SmilServiceImpl implements SmilService { @Override public SmilResponse addSequence(Smil smil) throws SmilException { return addSequence(smil, smil.getBody().getId()); }  @Override SmilResponse createNewSmil(); @Override SmilResponse createNewSmil(MediaPackage mediaPackage); @Override SmilResponse addParallel(Smil smil); @Override SmilResponse addParallel(Smil smil, String parentId); @Override SmilResponse addSequence(Smil smil); @Override SmilResponse addSequence(Smil smil, String parentId); @Override SmilResponse addClip(Smil smil, String parentId, Track track, long start, long duration); @Override SmilResponse addClip(Smil smil, String parentId, Track track, long start, long duration, String pgId); @Override SmilResponse addClips(Smil smil, String parentId, Track[] tracks, long start, long duration); @Override SmilResponse addMeta(Smil smil, String name, String content); @Override SmilResponse removeSmilElement(Smil smil, String elementId); @Override SmilResponse fromXml(String smilXml); @Override SmilResponse fromXml(File smilXmlFile);  }