use of org.kie.workbench.common.screens.server.management.client.events.RefreshRemoteServers in project kie-wb-common by kiegroup.
the class ContainerStatusEmptyPresenterTest method testRefresh.
@Test
public void testRefresh() {
final ContainerSpecKey containerSpecKey = new ContainerSpecKey("id", "name", new ServerTemplateKey());
presenter.setup(containerSpecKey);
presenter.refresh();
final ArgumentCaptor<RefreshRemoteServers> refreshRemoteServersCaptor = ArgumentCaptor.forClass(RefreshRemoteServers.class);
verify(refreshRemoteServersEvent).fire(refreshRemoteServersCaptor.capture());
assertEquals(containerSpecKey, refreshRemoteServersCaptor.getValue().getContainerSpecKey());
}
use of org.kie.workbench.common.screens.server.management.client.events.RefreshRemoteServers in project kie-wb-common by kiegroup.
the class ContainerPresenterTest method testOnRefresh.
@Test
public void testOnRefresh() {
when(runtimeManagementService.getContainersByContainerSpec(serverTemplateKey.getId(), containerSpec.getId())).thenReturn(containerSpecData);
presenter.onRefresh(new RefreshRemoteServers(containerSpec));
verifyLoad(true, 1);
}
Aggregations