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);
}
Aggregations