Search in sources :

Example 1 with AddNewProviderEvent

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);
}
Also used : AddNewProviderEvent(org.guvnor.ala.ui.client.events.AddNewProviderEvent) ProviderType(org.guvnor.ala.ui.model.ProviderType) ProvisioningManagementTestCommons.mockProviderType(org.guvnor.ala.ui.ProvisioningManagementTestCommons.mockProviderType) Test(org.junit.Test)

Example 2 with AddNewProviderEvent

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));
}
Also used : AddNewProviderEvent(org.guvnor.ala.ui.client.events.AddNewProviderEvent) Test(org.junit.Test)

Aggregations

AddNewProviderEvent (org.guvnor.ala.ui.client.events.AddNewProviderEvent)2 Test (org.junit.Test)2 ProvisioningManagementTestCommons.mockProviderType (org.guvnor.ala.ui.ProvisioningManagementTestCommons.mockProviderType)1 ProviderType (org.guvnor.ala.ui.model.ProviderType)1