Search in sources :

Example 1 with ProvisioningClientValidationService

use of org.guvnor.ala.ui.client.validation.ProvisioningClientValidationService in project kie-wb-common by kiegroup.

the class ContainerConfigPresenterTest method setUp.

@Before
public void setUp() {
    when(artifactSelector.getView()).thenReturn(artifactSelectorView);
    m2RepoServiceCaller = spy(new CallerMock<>(m2RepoService));
    provisioningValidationServiceCaller = new CallerMock<>(provisioningValidationService);
    provisioningClientValidationService = new ProvisioningClientValidationService(provisioningValidationServiceCaller);
    presenter = spy(new ContainerConfigPresenter(view, artifactSelector, translationService, popupHelper, m2RepoServiceCaller, provisioningClientValidationService));
    presenter.init();
    verify(view, times(1)).init(presenter);
    verify(artifactSelector, times(1)).setArtifactSelectHandler(any());
    verify(view, times(1)).setArtifactSelectorPresenter(artifactSelectorView);
}
Also used : ProvisioningClientValidationService(org.guvnor.ala.ui.client.validation.ProvisioningClientValidationService) CallerMock(org.uberfire.mocks.CallerMock) Before(org.junit.Before)

Aggregations

ProvisioningClientValidationService (org.guvnor.ala.ui.client.validation.ProvisioningClientValidationService)1 Before (org.junit.Before)1 CallerMock (org.uberfire.mocks.CallerMock)1