Search in sources :

Example 1 with AddNewContainer

use of org.kie.workbench.common.screens.server.management.client.events.AddNewContainer in project kie-wb-common by kiegroup.

the class ServerManagementPerspectiveTest method testOnNewContainer.

@Test
public void testOnNewContainer() {
    final ServerTemplate template = mock(ServerTemplate.class);
    perspective.onNewContainer(new AddNewContainer(template));
    verify(newContainerWizard).clear();
    verify(newContainerWizard).setServerTemplate(eq(template));
    verify(newContainerWizard).start();
}
Also used : AddNewServerTemplate(org.kie.workbench.common.screens.server.management.client.events.AddNewServerTemplate) ServerTemplate(org.kie.server.controller.api.model.spec.ServerTemplate) AddNewContainer(org.kie.workbench.common.screens.server.management.client.events.AddNewContainer) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ServerTemplate (org.kie.server.controller.api.model.spec.ServerTemplate)1 AddNewContainer (org.kie.workbench.common.screens.server.management.client.events.AddNewContainer)1 AddNewServerTemplate (org.kie.workbench.common.screens.server.management.client.events.AddNewServerTemplate)1