@Test public void acceptContextTrue() { when(bpmnDiagramService.getProjectType(rootPath)).thenReturn(ProjectType.CASE); tested.acceptContext(callback); verify(bpmnDiagramService).getProjectType(rootPath); verify(callback).onSuccess(true); }
@Override public void acceptContext(Callback<Boolean, Void> callback) { caseHelper.acceptContext(callback); }
CaseDefinitionNewResourceHandler extends AbstractProjectDiagramNewResourceHandler<BPMNDiagramResourceType> { @Override public void acceptContext(Callback<Boolean, Void> callback) { caseHelper.acceptContext(callback); } }
CaseDefinitionNewResourceHandler extends AbstractProjectDiagramNewResourceHandler<BPMNDiagramResourceType> { @Override public void acceptContext(Callback<Boolean, Void> callback) { caseHelper.acceptContext(callback); } CaseDefinitionNewResourceHandler(); @Inject  CaseDefinitionNewResourceHandler(final DefinitionManager definitionManager,
                                            final ClientProjectDiagramService projectDiagramService,
                                            final BusyIndicatorView indicatorView,
                                            final BPMNDiagramResourceType projectDiagramResourceType,
                                            final ClientTranslationService translationService,
                                            final CaseHelper caseHelper); }
CaseDefinitionNewResourceHandler extends AbstractProjectDiagramNewResourceHandler<BPMNDiagramResourceType> { @Override public void acceptContext(Callback<Boolean, Void> callback) { caseHelper.acceptContext(callback); } CaseDefinitionNewResourceHandler(); @Inject  CaseDefinitionNewResourceHandler(final DefinitionManager definitionManager,
                                            final ClientProjectDiagramService projectDiagramService,
                                            final BusyIndicatorView indicatorView,
                                            final BPMNDiagramResourceType projectDiagramResourceType,
                                            final ClientTranslationService translationService,
                                            final CaseHelper caseHelper); @Override String getDescription(); @Override IsWidget getIcon(); @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); List<Profile> getProfiles(); }
CaseDefinitionNewResourceHandler extends AbstractProjectDiagramNewResourceHandler<BPMNDiagramResourceType> { @Override public void acceptContext(Callback<Boolean, Void> callback) { caseHelper.acceptContext(callback); } CaseDefinitionNewResourceHandler(); @Inject  CaseDefinitionNewResourceHandler(final DefinitionManager definitionManager,
                                            final ClientProjectDiagramService projectDiagramService,
                                            final BusyIndicatorView indicatorView,
                                            final BPMNDiagramResourceType projectDiagramResourceType,
                                            final ClientTranslationService translationService,
                                            final CaseHelper caseHelper); @Override String getDescription(); @Override IsWidget getIcon(); @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); List<Profile> getProfiles();  }