method2testcases
stringlengths
118
6.63k
### Question: PipelinePresenter { public View getView() { return view; } @Inject PipelinePresenter(final View view); @PostConstruct void init(); View getView(); void addStage(final IsElement stage); void clearStages(); }### Answer: @Test public void testGetView() { assertEquals(view, presenter.getView()); }
### Question: EditableNameAndDataTypeColumn extends DMNSimpleGridColumn<G, InformationItemCell.HasNameCell> { protected abstract String getPopoverTitle(); EditableNameAndDataTypeColumn(final HeaderMetaData headerMetaData, final double width, ...
### Question: PipelinePresenter { public void addStage(final IsElement stage) { view.addStage(stage); } @Inject PipelinePresenter(final View view); @PostConstruct void init(); View getView(); void addStage(final IsElement stage); void clearStages(); }### Answer: @Test public void testAddStage() { IsElement stage = mo...
### Question: PipelinePresenter { public void clearStages() { view.clearStages(); } @Inject PipelinePresenter(final View view); @PostConstruct void init(); View getView(); void addStage(final IsElement stage); void clearStages(); }### Answer: @Test public void testClearStages() { presenter.clearStages(); verify(view,...
### Question: ArtifactSelectorPresenter { @PostConstruct public void init() { artifactListPresenter.notifyOnRefresh(false); artifactListPresenter.setup(ColumnType.GAV); view.init(this); search(SEARCH_ALL_FILTER); } @Inject ArtifactSelectorPresenter(final View view, final ArtifactLi...
### Question: ArtifactSelectorPresenter { public View getView() { return view; } @Inject ArtifactSelectorPresenter(final View view, final ArtifactListPresenter artifactListPresenter); @PostConstruct void init(); View getView(); void clear(); void refresh(); ArtifactListView getArti...
### Question: ArtifactSelectorPresenter { public void clear() { view.clear(); search(SEARCH_ALL_FILTER); } @Inject ArtifactSelectorPresenter(final View view, final ArtifactListPresenter artifactListPresenter); @PostConstruct void init(); View getView(); void clear(); void refresh()...
### Question: ArtifactSelectorPresenter { public void refresh() { artifactListPresenter.refresh(); } @Inject ArtifactSelectorPresenter(final View view, final ArtifactListPresenter artifactListPresenter); @PostConstruct void init(); View getView(); void clear(); void refresh(); Arti...
### Question: ArtifactSelectorPresenter { public ArtifactListView getArtifactListView() { return artifactListPresenter.getView(); } @Inject ArtifactSelectorPresenter(final View view, final ArtifactListPresenter artifactListPresenter); @PostConstruct void init(); View getView(); voi...
### Question: ArtifactSelectorPresenter { protected void onArtifactSelected(final String pathSelected) { if (artifactSelectHandler != null) { artifactSelectHandler.onArtifactSelected(pathSelected); } } @Inject ArtifactSelectorPresenter(final View view, final ArtifactListPresenter a...
### Question: ArtifactSelectorPresenter { protected void onSearch() { artifactListPresenter.search(view.getFilter(), FORMATS); } @Inject ArtifactSelectorPresenter(final View view, final ArtifactListPresenter artifactListPresenter); @PostConstruct void init(); View getView(); void c...
### Question: StyleHelper { public static void setFormStatus(final HTMLElement form, final FormStatus status) { if (status.equals(FormStatus.ERROR)) { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.ERROR); } else { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState....
### Question: DelegatingGridWidgetEditCellMouseEventHandler extends DefaultGridWidgetEditCellMouseEventHandler { @Override public boolean onNodeMouseEvent(final GridWidget gridWidget, final Point2D relativeLocation, final Optional<Integer> uiHeaderRowIndex, final Optional<Integer> uiHeaderColumnIndex, final Optional<In...
### Question: DMNMarshallerImportsHelperStandaloneImpl implements DMNMarshallerImportsHelperStandalone { List<Path> getPMMLDocumentPaths(final Metadata metadata) { return pathsHelper.getPMMLModelsPaths(getProject(metadata)); } DMNMarshallerImportsHelperStandaloneImpl(); @Inject DMNMarshallerImportsHelperStandaloneImpl...
### Question: AbstractProviderHandlerRegistry { public boolean isProviderInstalled(ProviderTypeKey providerTypeKey) { return getProviderHandler(providerTypeKey) != null; } protected AbstractProviderHandlerRegistry(); protected AbstractProviderHandlerRegistry(final Instance<T> handlerInstance); boolean isProviderInsta...
### Question: AbstractProviderHandlerRegistry { public T getProviderHandler(ProviderTypeKey providerTypeKey) { return handlers.stream() .filter(handler -> handler.acceptProviderType(providerTypeKey)) .sorted(Comparator.comparingInt(ProviderHandler::getPriority)) .findFirst().orElse(null); } protected AbstractProviderH...
### Question: VFSMarshallerRegistry extends BaseMarshallerRegistry { @PostConstruct public void init() { marshallerInstance.iterator().forEachRemaining(marshaller -> { logger.debug("Registering marshaller into VFSMarshallerRegistry, marshaller: " + marshaller); register(marshaller.getType(), marshaller); }); } VFSMarsh...
### Question: VFSRegistryHelper { public Path ensureDirectory(final String directory) { Path directoryPath = provisioningRootPath.resolve(directory); if (!ioService.exists(directoryPath)) { directoryPath = ioService.createDirectory(directoryPath); } return directoryPath; } VFSRegistryHelper(); @Inject VFSRegistryHelpe...
### Question: VFSRegistryHelper { public String md5Hex(String content) { if (content == null) { return ""; } return DigestUtils.md5Hex(content); } VFSRegistryHelper(); @Inject VFSRegistryHelper(final VFSMarshallerRegistry marshallerRegistry, final @Named("ioStrategy") IOService ioService, ...
### Question: VFSRegistryHelper { public void storeEntry(final Path path, final Object value) throws Exception { final Marshaller marshaller = marshallerRegistry.get(value.getClass()); if (marshaller == null) { throw new Exception("No marshaller was found for class: " + value.getClass()); } @SuppressWarnings("unchecked...
### Question: VFSRegistryHelper { public Object readEntry(final Path path) throws Exception { final String entryContent = ioService.readAllString(path); final VFSRegistryEntry entry = entryMarshaller.unmarshal(entryContent); final Marshaller marshaller = marshallerRegistry.get(Class.forName(entry.getContentType())); if...
### Question: VFSRegistryHelper { public List<Object> readEntries(final Path rootPath, final DirectoryStream.Filter<Path> filter) throws Exception { final List<Object> entries = new ArrayList<>(); for (Path path : ioService.newDirectoryStream(rootPath, filter)) { try { entries.add(readEntry(path)); } catch (Exception e...
### Question: VFSRegistryHelper { public void writeBatch(final Path path, final String content) { try { ioService.startBatch(path.getFileSystem()); ioService.write(path, content); } finally { ioService.endBatch(); } } VFSRegistryHelper(); @Inject VFSRegistryHelper(final VFSMarshallerRegistry marshallerRegistry, ...
### Question: VFSRegistryHelper { public void deleteBatch(final Path path) { try { ioService.startBatch(path.getFileSystem()); ioService.deleteIfExists(path); } finally { ioService.endBatch(); } } VFSRegistryHelper(); @Inject VFSRegistryHelper(final VFSMarshallerRegistry marshallerRegistry, ...
### Question: VFSRuntimeRegistry extends InMemoryRuntimeRegistry { @PostConstruct protected void init() { initializeRegistryRoot(); initializeRegistry(); } VFSRuntimeRegistry(); @Inject VFSRuntimeRegistry(final VFSRegistryHelper registryHelper); @Override void registerProvider(final Provider provider); @Override void ...
### Question: VFSRuntimeRegistry extends InMemoryRuntimeRegistry { @Override public void registerProvider(final Provider provider) { checkNotNull("provider", provider); final Path path = buildProviderPath(provider.getId()); try { registryHelper.storeEntry(path, provider); } catch (Exception e) { logger.error("Unexpecte...
### Question: VFSRuntimeRegistry extends InMemoryRuntimeRegistry { @Override public void deregisterProvider(final Provider provider) { checkNotNull("provider", provider); deregisterProvider(provider.getId()); } VFSRuntimeRegistry(); @Inject VFSRuntimeRegistry(final VFSRegistryHelper registryHelper); @Override void reg...
### Question: VFSRuntimeRegistry extends InMemoryRuntimeRegistry { @Override public void registerRuntime(final Runtime runtime) { checkNotNull("runtime", runtime); final Path path = buildRuntimePath(runtime.getId()); try { registryHelper.storeEntry(path, runtime); } catch (Exception e) { logger.error("Unexpected error ...
### Question: VFSRuntimeRegistry extends InMemoryRuntimeRegistry { @Override public void deregisterRuntime(final RuntimeId runtimeId) { checkNotNull("runtimeId", runtimeId); final Path path = buildRuntimePath(runtimeId.getId()); registryHelper.deleteBatch(path); super.deregisterRuntime(runtimeId); } VFSRuntimeRegistry(...
### Question: VFSPipelineExecutorRegistry extends InMemoryPipelineExecutorRegistry { @PostConstruct public void init() { initializeRegistryRoot(); initializeRegistry(); } VFSPipelineExecutorRegistry(); @Inject VFSPipelineExecutorRegistry(final VFSRegistryHelper registryHelper); @PostConstruct void init(); @Override vo...
### Question: VFSPipelineExecutorRegistry extends InMemoryPipelineExecutorRegistry { @Override public void register(final PipelineExecutorTrace trace) { checkNotNull("trace", trace); final Path path = buildTracePath(trace.getTaskId()); try { registryHelper.storeEntry(path, trace); } catch (Exception e) { logger.error("...
### Question: VFSPipelineExecutorRegistry extends InMemoryPipelineExecutorRegistry { @Override public void deregister(final String taskId) { checkNotNull("taskId", taskId); final Path path = buildTracePath(taskId); registryHelper.deleteBatch(path); super.deregister(taskId); } VFSPipelineExecutorRegistry(); @Inject VFS...
### Question: VariableInterpolation { public static <T> T interpolate(final Map<String, Object> values, final T object) { interpolator.setDefaultLookup(new MapOfMapStrLookup(values)); return proxy(object); } private VariableInterpolation(); static T interpolate(final Map<String, Object> values, ...
### Question: PipelineFactory { public static ConfigBasedPipelineBuilder newBuilder() { return new ConfigBasedPipelineBuilder() { private final List<PipelineConfigStage> configStages = new ArrayList<>(); @Override public ConfigBasedPipelineBuilder addConfigStage(final String name, final Config config) { configStages.ad...
### Question: EditableHeaderGridWidgetEditCellMouseEventHandler extends DefaultGridWidgetEditCellMouseEventHandler { @Override public boolean onNodeMouseEvent(final GridWidget gridWidget, final Point2D relativeLocation, final Optional<Integer> uiHeaderRowIndex, final Optional<Integer> uiHeaderColumnIndex, final Optiona...
### Question: PipelineFactory { public static ConfigBasedPipeline newPipeline(final PipelineConfig pipelineConfig) { return new ConfigBasedPipelineImpl(pipelineConfig); } private PipelineFactory(); static ConfigBasedPipelineBuilder newBuilder(); static ConfigBasedPipeline newPipeline(final PipelineConfig pipelineConfi...
### Question: PipelineExecutorTaskManagerImplHelper { public ExecutorService createExecutorService() { final String threadPoolSizeValue = System.getProperties().getProperty(THREAD_POOL_SIZE_PROPERTY_NAME); int threadPoolSize; if (threadPoolSizeValue == null) { threadPoolSize = DEFAULT_THREAD_POOL_SIZE; logger.debug(THR...
### Question: PipelineExecutorTaskManagerImplHelper { public PipelineExecutor createPipelineExecutor() { final Collection<ConfigExecutor> configs = new ArrayList<>(); configExecutorInstance.iterator().forEachRemaining(configs::add); return newPipelineExecutor(configs); } PipelineExecutorTaskManagerImplHelper(final Inst...
### Question: PipelineExecutorTaskManagerImplHelper { public List<PipelineEventListener> createExternalListeners() { List<PipelineEventListener> eventListeners = new ArrayList<>(); pipelineEventListenerInstance.iterator().forEachRemaining(eventListeners::add); return eventListeners; } PipelineExecutorTaskManagerImplHel...
### Question: PipelineExecutorTaskManagerImplHelper { public void setTaskInStoppedStatus(final PipelineExecutorTaskImpl task) { task.setPipelineStatus(PipelineExecutorTask.Status.STOPPED); task.getTaskDef().getStages() .stream() .filter(stage -> PipelineExecutorTask.Status.RUNNING.equals(task.getStageStatus(stage)) || ...
### Question: InMemoryPipelineExecutorRegistry implements PipelineExecutorRegistry { @Override public void register(final PipelineExecutorTrace trace) { checkNotNull("trace", trace); recordsMap.put(trace.getTaskId(), trace); } InMemoryPipelineExecutorRegistry(); @Override void register(final PipelineExecutorTrace trace...
### Question: InMemoryPipelineExecutorRegistry implements PipelineExecutorRegistry { public void deregister(final String pipelineExecutionId) { checkNotNull("pipelineExecutionId", pipelineExecutionId); recordsMap.remove(pipelineExecutionId); } InMemoryPipelineExecutorRegistry(); @Override void register(final PipelineEx...
### Question: InMemoryPipelineExecutorRegistry implements PipelineExecutorRegistry { @Override public PipelineExecutorTrace getExecutorTrace(final String pipelineExecutionId) { return recordsMap.get(pipelineExecutionId); } InMemoryPipelineExecutorRegistry(); @Override void register(final PipelineExecutorTrace trace); v...
### Question: InMemoryPipelineExecutorRegistry implements PipelineExecutorRegistry { @Override public Collection<PipelineExecutorTrace> getExecutorTraces() { return recordsMap.values(); } InMemoryPipelineExecutorRegistry(); @Override void register(final PipelineExecutorTrace trace); void deregister(final String pipelin...
### Question: InMemoryPipelineRegistry implements PipelineRegistry { @Override public void registerPipeline(final Pipeline pipeline) { checkNotNull("pipeline", pipeline); pipelineByName.put(pipeline.getName(), new PipelineRegistryEntry(pipeline)); } InMemoryPipelineRegistry(); @Override void registerPipeline(final Pipe...
### Question: InMemoryPipelineRegistry implements PipelineRegistry { @Override public Pipeline getPipelineByName(final String pipelineId) { checkNotNull("pipelineId", pipelineId); return pipelineByName.get(pipelineId).getPipeline(); } InMemoryPipelineRegistry(); @Override void registerPipeline(final Pipeline pipeline);...
### Question: InMemoryPipelineRegistry implements PipelineRegistry { @Override public List<Pipeline> getPipelines(final int page, final int pageSize, final String sort, final boolean sortOrder) { final List<Pipeline> values = pipelineByName.values() .stream() .map(PipelineRegistryEntry::getPipeline).collect(Collectors....
### Question: InMemoryPipelineRegistry implements PipelineRegistry { @Override public ProviderType getProviderType(final String pipelineId) { checkNotNull("pipelineId", pipelineId); PipelineRegistryEntry entry = pipelineByName.get(pipelineId); return entry != null ? entry.getProviderType() : null; } InMemoryPipelineReg...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public void registerProviderType(final ProviderType providerType) { checkNotNull("providerType", providerType); providerTypes.put(providerType, providerType); } InMemoryRuntimeRegistry(); @Override void registerProviderType(final ProviderType ...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public void deregisterProviderType(final ProviderType providerType) { checkNotNull("providerType", providerType); providerTypes.remove(providerType); } InMemoryRuntimeRegistry(); @Override void registerProviderType(final ProviderType providerT...
### Question: EditableHeaderGridWidgetEditCellMouseEventHandler extends DefaultGridWidgetEditCellMouseEventHandler { @Override public boolean handleHeaderCell(final GridWidget gridWidget, final Point2D relativeLocation, final int uiHeaderRowIndex, final int uiHeaderColumnIndex, final AbstractNodeMouseEvent event) { fin...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public List<ProviderType> getProviderTypes(final Integer page, final Integer pageSize, final String sort, final boolean sortOrder) { final Collection<ProviderType> values = providerTypes.values(); return PageSortUtil.pageSort(values, (Provider...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public void registerProvider(final Provider provider) { checkNotNull("provider", provider); providers.put(provider.getId(), provider); } InMemoryRuntimeRegistry(); @Override void registerProviderType(final ProviderType providerType); @Override...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public void deregisterProvider(final Provider provider) { checkNotNull("provider", provider); providers.remove(provider.getId()); } InMemoryRuntimeRegistry(); @Override void registerProviderType(final ProviderType providerType); @Override List...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public List<Provider> getProviders(final Integer page, final Integer pageSize, final String sort, final boolean sortOrder) { final Collection<Provider> values = providers.values(); return PageSortUtil.pageSort(values, (Provider p1, Provider p2...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public Provider getProvider(final String providerId) { checkNotNull("providerId", providerId); return providers.get(providerId); } InMemoryRuntimeRegistry(); @Override void registerProviderType(final ProviderType providerType); @Override List<...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public List<Provider> getProvidersByType(final ProviderType providerType) { checkNotNull("providerType", providerType); return providers.values().stream() .filter(provider -> providerType.equals(provider.getProviderType())) .collect(Collectors...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public void registerRuntime(final Runtime runtime) { checkNotNull("runtime", runtime); runtimes.put(runtime.getId(), runtime); } InMemoryRuntimeRegistry(); @Override void registerProviderType(final ProviderType providerType); @Override List<Pr...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public List<Runtime> getRuntimes(final Integer page, final Integer pageSize, final String sort, final boolean sortOrder) { final Collection<Runtime> values = runtimes.values(); return PageSortUtil.pageSort(values, (Runtime r1, Runtime r2) -> {...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public Runtime getRuntimeById(final String runtimeId) { checkNotNull("runtimeId", runtimeId); return runtimes.get(runtimeId); } InMemoryRuntimeRegistry(); @Override void registerProviderType(final ProviderType providerType); @Override List<Pro...
### Question: InMemoryRuntimeRegistry implements RuntimeRegistry { @Override public void deregisterRuntime(final RuntimeId runtimeId) { checkNotNull("runtimeId", runtimeId); runtimes.remove(runtimeId.getId()); } InMemoryRuntimeRegistry(); @Override void registerProviderType(final ProviderType providerType); @Override L...
### Question: InMemorySourceRegistry implements SourceRegistry { @Override public void registerRepositorySources(final Path path, final Repository repo) { repositorySourcesPath.put(path, repo); pathByRepositoryId.put(repo.getId(), path); } InMemorySourceRegistry(); @Override void registerRepositorySources(final Path pa...
### Question: InMemorySourceRegistry implements SourceRegistry { @Override public List<Repository> getAllRepositories() { return new ArrayList<>(repositorySourcesPath.values()); } InMemorySourceRegistry(); @Override void registerRepositorySources(final Path path, final Reposito...
### Question: InMemoryBuildRegistry implements BuildRegistry { @Override public void registerBinary(final Binary binary) { binariesByName.put(binary.getName(), binary); } InMemoryBuildRegistry(); @Override void registerBinary(final Binary binary); @Override List<Binary> getAllBinaries(); }### Answer: @Test public void...
### Question: InMemoryBuildRegistry implements BuildRegistry { @Override public List<Binary> getAllBinaries() { return new ArrayList<>(binariesByName.values()); } InMemoryBuildRegistry(); @Override void registerBinary(final Binary binary); @Override List<Binary> getAllBinaries(); }### Answer: @Test public void testGet...
### Question: DiagramLookupServiceImpl extends AbstractDiagramLookupService<Metadata, Diagram<Graph, Metadata>> { @Override protected boolean matches(final String criteria, final Diagram<Graph, Metadata> item) { final Map<String, String> criteriaMap = AbstractCriteriaLookupManager.parseCriteria(criteria); final String ...
### Question: DiagramEditorExplorerScreen { @WorkbenchPartView public IsWidget getWidget() { return view; } protected DiagramEditorExplorerScreen(); @Inject DiagramEditorExplorerScreen(final SessionManager clientSessionManager, final @Any ManagedInstance<TreeExplorer> treeExplor...
### Question: DiagramEditorExplorerScreen { public void show(final ClientSession session) { if (null != session.getCanvasHandler().getDiagram()) { showPreview(session); showExplorer(session); updateTitle(session); } } protected DiagramEditorExplorerScreen(); @Inject DiagramEditorExplorerScreen(final SessionManager cl...
### Question: DiagramEditorExplorerScreen { public void close() { closeTreeExplorer(); closePreview(); } protected DiagramEditorExplorerScreen(); @Inject DiagramEditorExplorerScreen(final SessionManager clientSessionManager, final @Any ManagedInstance<TreeExplorer> treeExplorers...
### Question: EditorSessionCommands { @PostConstruct public void init() { registerCommands(); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); ManagedClientSessionCommands getCommands(); VisitGraphSessionC...
### Question: EditorSessionCommands { public EditorSessionCommands bind(final ClientSession session) { commands.bind(session); return this; } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); ManagedClientSes...
### Question: EditorSessionCommands { public ManagedClientSessionCommands getCommands() { return commands; } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); ManagedClientSessionCommands getCommands(); Visit...
### Question: EditorSessionCommands { public VisitGraphSessionCommand getVisitGraphSessionCommand() { return commands.get(VisitGraphSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); M...
### Question: EditorSessionCommands { public SwitchGridSessionCommand getSwitchGridSessionCommand() { return commands.get(SwitchGridSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); M...
### Question: EditorSessionCommands { public ClearSessionCommand getClearSessionCommand() { return commands.get(ClearSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); ManagedClientSes...
### Question: EditorSessionCommands { public DeleteSelectionSessionCommand getDeleteSelectionSessionCommand() { return commands.get(DeleteSelectionSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSess...
### Question: EditorSessionCommands { public UndoSessionCommand getUndoSessionCommand() { return commands.get(UndoSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); ManagedClientSessio...
### Question: EditorSessionCommands { public RedoSessionCommand getRedoSessionCommand() { return commands.get(RedoSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); ManagedClientSessio...
### Question: DelegatingGridWidgetCellSelectorMouseEventHandler extends DefaultGridWidgetCellSelectorMouseEventHandler { @Override public boolean onNodeMouseEvent(final GridWidget gridWidget, final Point2D relativeLocation, final Optional<Integer> uiHeaderRowIndex, final Optional<Integer> uiHeaderColumnIndex, final Opt...
### Question: EditorSessionCommands { public ValidateSessionCommand getValidateSessionCommand() { return commands.get(ValidateSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); Managed...
### Question: EditorSessionCommands { public ExportToPngSessionCommand getExportToPngSessionCommand() { return commands.get(ExportToPngSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session)...
### Question: EditorSessionCommands { public ExportToJpgSessionCommand getExportToJpgSessionCommand() { return commands.get(ExportToJpgSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session)...
### Question: EditorSessionCommands { public ExportToPdfSessionCommand getExportToPdfSessionCommand() { return commands.get(ExportToPdfSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session)...
### Question: EditorSessionCommands { public ExportToSvgSessionCommand getExportToSvgSessionCommand() { return commands.get(ExportToSvgSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session)...
### Question: EditorSessionCommands { public CopySelectionSessionCommand getCopySelectionSessionCommand() { return commands.get(CopySelectionSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession se...
### Question: EditorSessionCommands { public PasteSelectionSessionCommand getPasteSelectionSessionCommand() { return commands.get(PasteSelectionSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession...
### Question: EditorSessionCommands { public CutSelectionSessionCommand getCutSelectionSessionCommand() { return commands.get(CutSelectionSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession sessi...
### Question: EditorSessionCommands { public SaveDiagramSessionCommand getSaveDiagramSessionCommand() { return commands.get(SaveDiagramSessionCommand.class); } @Inject EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session)...
### Question: DiagramEditorScreenViewImpl implements DiagramEditorScreenView, IsElement { @Override public DiagramEditorScreenView setWidget(final IsWidget widget) { widgetPanel.clear(); widgetPanel.add(widget); return this; } @Inject DiagramEditorScreenViewImpl(fina...
### Question: DiagramEditorScreenViewImpl implements DiagramEditorScreenView, IsElement { @Override public DiagramEditorScreenView showLoading() { widgetPanel.setVisible(false); loadingPanel.setVisible(true); return this; } @Inject DiagramEditorScreenViewImpl(final @...
### Question: DiagramEditorScreenViewImpl implements DiagramEditorScreenView, IsElement { @Override public DiagramEditorScreenView hideLoading() { loadingPanel.setVisible(false); widgetPanel.setVisible(true); return this; } @Inject DiagramEditorScreenViewImpl(final @...
### Question: ValidationAction { public void validate() { if (!isValidationRunning && onBeforeValidate()) { isValidationRunning = true; loadingStarts.execute(); sessionCommands.getValidateSessionCommand().execute(new ClientSessionCommand.Callback<Collection<DiagramElementViolation<RuleViolation>>>() { @Override public ...
### Question: DiagramEditorView extends BaseEditorViewImpl implements AbstractDiagramEditor.View { @Override public void setWidget(final IsWidget widget) { editorPanel.clear(); editorPanel.add(widget); } protected DiagramEditorView(); @Inject DiagramEditorView(final ResizeFlowPanel editorPanel); @Override void init(f...
### Question: DiagramEditorView extends BaseEditorViewImpl implements AbstractDiagramEditor.View { @Override public void onResize() { editorPanel.onResize(); } protected DiagramEditorView(); @Inject DiagramEditorView(final ResizeFlowPanel editorPanel); @Override void init(final DiagramEditorCore presenter); @Override...
### Question: DiagramEditorView extends BaseEditorViewImpl implements AbstractDiagramEditor.View { @Override protected void onAttach() { super.onAttach(); if (getElement().getParentElement() != null) { getElement().getParentElement().getStyle().setHeight(100, Style.Unit.PCT); getElement().getParentElement().getStyle()....
### Question: ProjectFullProfile extends FullProfile implements ProjectProfile { @Override public String getProjectProfileName() { return Profile.FULL.getName(); } @Override String getProjectProfileName(); }### Answer: @Test public void testProfile() { ProjectFullProfile profile = new ProjectFullProfile(); assertEqua...
### Question: ProjectDiagramResourceServiceImpl implements ProjectDiagramResourceService { @PostConstruct public void init() { saveAndRenameService.init(this); } ProjectDiagramResourceServiceImpl(); @Inject ProjectDiagramResourceServiceImpl(final ProjectDiagramService projectDiagramService, ...
### Question: ProjectDiagramResourceServiceImpl implements ProjectDiagramResourceService { @Override public Path save(final Path path, final ProjectDiagramResource resource, final Metadata metadata, final String comment) { final DiagramType type = resource.getType(); final Map<DiagramType, Function<ProjectDiagramResour...
### Question: ProjectDiagramResourceServiceImpl implements ProjectDiagramResourceService { @Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); } ProjectDiagramResourceServiceImpl(); @Inject ProjectDiagramResourceServiceImpl(fi...
### Question: GridCellTuple implements RequiresResize { public void proposeContainingColumnWidth(final double proposedWidth, final Function<BaseExpressionGrid, Double> requiredWidthSupplier) { final GridColumn<?> parentColumn = gridWidget.getModel().getColumns().get(columnIndex); final double requiredWidth = Math.max(p...