@Test @SuppressWarnings("unchecked") public void testCreateDiagram() throws Exception { tested.createDiagram(null, null, null, null, null, null, Optional.empty()); verify(projectDiagramService).create(isNull(Path.class), isNull(String.class), isNull(String.class), isNull(String.class), isNull(Package.class), eq(Optional.of(ProjectType.CASE.name())), any(ServiceCallback.class)); }
@Override public void createDiagram(Package pkg, String name, NewResourcePresenter presenter, Path path, String setId, String moduleName, Optional<String> projectType) { super.createDiagram(pkg, name, presenter, path, setId, moduleName, Optional.of(ProjectType.CASE.name())); }
CaseManagementDiagramNewResourceHandler extends AbstractProjectDiagramNewResourceHandler<CaseManagementDiagramResourceType> { @Override public void createDiagram(Package pkg, String name, NewResourcePresenter presenter, Path path, String setId, String moduleName, Optional<String> projectType) { super.createDiagram(pkg, name, presenter, path, setId, moduleName, Optional.of(ProjectType.CASE.name())); } }
CaseManagementDiagramNewResourceHandler extends AbstractProjectDiagramNewResourceHandler<CaseManagementDiagramResourceType> { @Override public void createDiagram(Package pkg, String name, NewResourcePresenter presenter, Path path, String setId, String moduleName, Optional<String> projectType) { super.createDiagram(pkg, name, presenter, path, setId, moduleName, Optional.of(ProjectType.CASE.name())); } protected  CaseManagementDiagramNewResourceHandler(); @Inject  CaseManagementDiagramNewResourceHandler(final DefinitionManager definitionManager,
                                                   final ClientProjectDiagramService projectDiagramServices,
                                                   final BusyIndicatorView indicatorView,
                                                   final CaseManagementDiagramResourceType projectDiagramResourceType,
                                                   final AuthorizationManager authorizationManager,
                                                   final SessionInfo sessionInfo,
                                                   final CaseHelper caseHelper); }
CaseManagementDiagramNewResourceHandler extends AbstractProjectDiagramNewResourceHandler<CaseManagementDiagramResourceType> { @Override public void createDiagram(Package pkg, String name, NewResourcePresenter presenter, Path path, String setId, String moduleName, Optional<String> projectType) { super.createDiagram(pkg, name, presenter, path, setId, moduleName, Optional.of(ProjectType.CASE.name())); } protected  CaseManagementDiagramNewResourceHandler(); @Inject  CaseManagementDiagramNewResourceHandler(final DefinitionManager definitionManager,
                                                   final ClientProjectDiagramService projectDiagramServices,
                                                   final BusyIndicatorView indicatorView,
                                                   final CaseManagementDiagramResourceType projectDiagramResourceType,
                                                   final AuthorizationManager authorizationManager,
                                                   final SessionInfo sessionInfo,
                                                   final CaseHelper caseHelper); @Override String getDescription(); @Override IsWidget getIcon(); @Override boolean canCreate(); @Override List<Profile> getProfiles(); @Override void createDiagram(Package pkg, String name, NewResourcePresenter presenter, Path path, String setId,
                              String moduleName, Optional<String> projectType); @Override void acceptContext(Callback<Boolean, Void> callback); }
CaseManagementDiagramNewResourceHandler extends AbstractProjectDiagramNewResourceHandler<CaseManagementDiagramResourceType> { @Override public void createDiagram(Package pkg, String name, NewResourcePresenter presenter, Path path, String setId, String moduleName, Optional<String> projectType) { super.createDiagram(pkg, name, presenter, path, setId, moduleName, Optional.of(ProjectType.CASE.name())); } protected  CaseManagementDiagramNewResourceHandler(); @Inject  CaseManagementDiagramNewResourceHandler(final DefinitionManager definitionManager,
                                                   final ClientProjectDiagramService projectDiagramServices,
                                                   final BusyIndicatorView indicatorView,
                                                   final CaseManagementDiagramResourceType projectDiagramResourceType,
                                                   final AuthorizationManager authorizationManager,
                                                   final SessionInfo sessionInfo,
                                                   final CaseHelper caseHelper); @Override String getDescription(); @Override IsWidget getIcon(); @Override boolean canCreate(); @Override List<Profile> getProfiles(); @Override void createDiagram(Package pkg, String name, NewResourcePresenter presenter, Path path, String setId,
                              String moduleName, Optional<String> projectType); @Override void acceptContext(Callback<Boolean, Void> callback);  }