Search in sources :

Example 1 with SnapshotContextValidator

use of org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.validators.SnapshotContextValidator in project kie-wb-common by kiegroup.

the class SnapshotBuildExecutorTest method setup.

@Before
public void setup() {
    super.setup();
    context = getSnapshotContext();
    runner = spy(new BuildExecutor(buildService, buildResultsEvent, notificationEvent, buildDialog, new SnapshotContextValidator()));
}
Also used : SnapshotContextValidator(org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.validators.SnapshotContextValidator) Before(org.junit.Before)

Example 2 with SnapshotContextValidator

use of org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.validators.SnapshotContextValidator in project kie-wb-common by kiegroup.

the class BuildExecutionManagerImpl method init.

@PostConstruct
protected void init() {
    defaultRunners = new HashMap<>();
    defaultRunners.put(BuildType.BUILD, new BuildExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, new DefaultContextValidator()));
    defaultRunners.put(BuildType.DEPLOY, new ProductionBuildAndDeployExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, deploymentPopup, specManagementService, conflictingRepositoriesPopup));
    defaultRunners.put(BuildType.INSTALL, new ProductionInstallExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, conflictingRepositoriesPopup));
    settings.load();
    snapshotRunners = new HashMap<>();
    snapshotRunners.put(BuildType.BUILD, new BuildExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, new SnapshotContextValidator()));
    snapshotRunners.put(BuildType.DEPLOY, new SnapshotBuildAndDeployExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, deploymentPopup, specManagementService, settings));
    snapshotRunners.put(BuildType.INSTALL, new SnapshotInstallExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog));
    snapshotRunners.put(BuildType.REDEPLOY, new SnapshotRedeployExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, deploymentPopup, specManagementService, settings));
}
Also used : ProductionBuildAndDeployExecutor(org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.deploy.ProductionBuildAndDeployExecutor) SnapshotContextValidator(org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.validators.SnapshotContextValidator) SnapshotBuildAndDeployExecutor(org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.deploy.SnapshotBuildAndDeployExecutor) ProductionInstallExecutor(org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.install.ProductionInstallExecutor) DefaultContextValidator(org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.validators.DefaultContextValidator) BuildExecutor(org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.build.BuildExecutor) SnapshotInstallExecutor(org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.install.SnapshotInstallExecutor) SnapshotRedeployExecutor(org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.redeploy.SnapshotRedeployExecutor) PostConstruct(javax.annotation.PostConstruct)

Aggregations

SnapshotContextValidator (org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.validators.SnapshotContextValidator)2 PostConstruct (javax.annotation.PostConstruct)1 Before (org.junit.Before)1 BuildExecutor (org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.build.BuildExecutor)1 ProductionBuildAndDeployExecutor (org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.deploy.ProductionBuildAndDeployExecutor)1 SnapshotBuildAndDeployExecutor (org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.deploy.SnapshotBuildAndDeployExecutor)1 ProductionInstallExecutor (org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.install.ProductionInstallExecutor)1 SnapshotInstallExecutor (org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.install.SnapshotInstallExecutor)1 SnapshotRedeployExecutor (org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.redeploy.SnapshotRedeployExecutor)1 DefaultContextValidator (org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.validators.DefaultContextValidator)1