use of org.guvnor.ala.ui.client.events.AddNewProviderEvent in project kie-wb-common by kiegroup.
the class ProvisioningManagementPerspectiveTest method testAddNewProvider.
@Test
public void testAddNewProvider() {
ProviderType providerType = mockProviderType("");
perspective.onAddNewProvider(new AddNewProviderEvent(providerType));
verify(newProviderWizard, times(1)).start(providerType);
}
use of org.guvnor.ala.ui.client.events.AddNewProviderEvent in project kie-wb-common by kiegroup.
the class ProviderTypePresenterTest method onAddNewProviderTest.
@Test
public void onAddNewProviderTest() {
presenter.setup(providerType, providers, provider);
presenter.onAddNewProvider();
verify(addNewProviderEvent, times(1)).fire(new AddNewProviderEvent(providerType));
}
Aggregations