@Test public void create() { Path createdPath = delegateDiagramService.create(this.path, NAME, DEF_ID); verify(projectDiagramService).create(this.path, NAME, DEF_ID); assertEquals(createdPath, path); }
@Override public Path create(final Path path, final String name, final String defSetId) { return projectDiagramService.create(path, name, defSetId); }
DelegateDiagramService implements DiagramService { @Override public Path create(final Path path, final String name, final String defSetId) { return projectDiagramService.create(path, name, defSetId); } }
DelegateDiagramService implements DiagramService { @Override public Path create(final Path path, final String name, final String defSetId) { return projectDiagramService.create(path, name, defSetId); } @Inject  DelegateDiagramService(final ProjectDiagramService projectDiagramService); }
DelegateDiagramService implements DiagramService { @Override public Path create(final Path path, final String name, final String defSetId) { return projectDiagramService.create(path, name, defSetId); } @Inject  DelegateDiagramService(final ProjectDiagramService projectDiagramService); @Override @SuppressWarnings("unchecked") Diagram<Graph, Metadata> getDiagramByPath(final Path path); @Override boolean accepts(final Path path); @Override Path create(final Path path,
                       final String name,
                       final String defSetId); @Override Metadata saveOrUpdate(final Diagram<Graph, Metadata> diagram); @Override boolean delete(final Diagram<Graph, Metadata> diagram); @Override String getRawContent(final Diagram<Graph, Metadata> diagram); @Override Path saveOrUpdateSvg(final Path diagramPath,
                                final String rawDiagramSvg); }
DelegateDiagramService implements DiagramService { @Override public Path create(final Path path, final String name, final String defSetId) { return projectDiagramService.create(path, name, defSetId); } @Inject  DelegateDiagramService(final ProjectDiagramService projectDiagramService); @Override @SuppressWarnings("unchecked") Diagram<Graph, Metadata> getDiagramByPath(final Path path); @Override boolean accepts(final Path path); @Override Path create(final Path path,
                       final String name,
                       final String defSetId); @Override Metadata saveOrUpdate(final Diagram<Graph, Metadata> diagram); @Override boolean delete(final Diagram<Graph, Metadata> diagram); @Override String getRawContent(final Diagram<Graph, Metadata> diagram); @Override Path saveOrUpdateSvg(final Path diagramPath,
                                final String rawDiagramSvg);  }