use of org.kie.workbench.common.screens.projecteditor.client.editor.DeploymentScreenPopupViewImpl in project kie-wb-common by kiegroup.
the class DeploymentPopupBuilderTest method testBuildDeployWithMultipleServerTemplates.
@Test
public void testBuildDeployWithMultipleServerTemplates() throws Exception {
final List<ServerTemplate> serverTemplates = new ArrayList<>();
final ValidateExistingContainerCallback callback = mock(ValidateExistingContainerCallback.class);
final ParameterizedCommand<DeploymentScreenPopupViewImpl> onSuccess = (v) -> {
};
doReturn(callback).when(builder).multipleServerTemplatesValidation(serverTemplates);
builder.buildDeployWithMultipleServerTemplates(serverTemplates, onSuccess);
verify(builder).setViewFields(onSuccess, callback);
}
use of org.kie.workbench.common.screens.projecteditor.client.editor.DeploymentScreenPopupViewImpl in project kie-wb-common by kiegroup.
the class DeploymentPopupBuilderTest method testBuildDeployWithOneServerTemplate.
@Test
public void testBuildDeployWithOneServerTemplate() throws Exception {
final ServerTemplate serverTemplate = mock(ServerTemplate.class);
final ValidateExistingContainerCallback callback = mock(ValidateExistingContainerCallback.class);
final ParameterizedCommand<DeploymentScreenPopupViewImpl> onSuccess = (v) -> {
};
doReturn(callback).when(builder).singleServerTemplatesValidation(serverTemplate);
builder.buildDeployWithOneServerTemplate(serverTemplate, onSuccess);
verify(builder).setViewFields(onSuccess, callback);
}
Aggregations