use of org.kie.workbench.common.screens.projectimportsscreen.client.forms.answer.LoadContentAnswer in project kie-wb-common by kiegroup.
the class ProjectImportsScreenPresenterTest method verifyShowHide.
private void verifyShowHide(boolean positive) {
when(serviceCaller.call(any(RemoteCallback.class), any(ErrorCallback.class))).thenAnswer(new LoadContentAnswer(importsService, importsContent, positive ? null : errorCallback));
presenter.init(path, placeRequest);
verify(view).showLoading();
if (positive) {
verify(view).hideBusyIndicator();
} else {
verify(errorCallback).error(any(Message.class), any(Throwable.class));
}
}
Aggregations