@Test public void getDiagramByPath() { Diagram<Graph, Metadata> diagram = delegateDiagramService.getDiagramByPath(path); verify(projectDiagramService).getDiagramByPath(path); assertEqualDiagram(diagram); }
@Override @SuppressWarnings("unchecked") public Diagram<Graph, Metadata> getDiagramByPath(final Path path) { return convert(projectDiagramService.getDiagramByPath(path)); }
DelegateDiagramService implements DiagramService { @Override @SuppressWarnings("unchecked") public Diagram<Graph, Metadata> getDiagramByPath(final Path path) { return convert(projectDiagramService.getDiagramByPath(path)); } }
DelegateDiagramService implements DiagramService { @Override @SuppressWarnings("unchecked") public Diagram<Graph, Metadata> getDiagramByPath(final Path path) { return convert(projectDiagramService.getDiagramByPath(path)); } @Inject  DelegateDiagramService(final ProjectDiagramService projectDiagramService); }
DelegateDiagramService implements DiagramService { @Override @SuppressWarnings("unchecked") public Diagram<Graph, Metadata> getDiagramByPath(final Path path) { return convert(projectDiagramService.getDiagramByPath(path)); } @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 @SuppressWarnings("unchecked") public Diagram<Graph, Metadata> getDiagramByPath(final Path path) { return convert(projectDiagramService.getDiagramByPath(path)); } @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);  }