use of org.kie.server.controller.api.model.events.ServerInstanceUpdated in project kie-wb-common by kiegroup.
the class RemotePresenterTest method testOnInstanceUpdate.
@Test
public void testOnInstanceUpdate() {
final ServerInstance serverInstance = new ServerInstance("templateId", "serverName", "serverInstanceId", "url", "1.0", Collections.<Message>emptyList(), Collections.<Container>emptyList());
presenter.onSelect(new ServerInstanceSelected(serverInstance));
presenter.onInstanceUpdate(new ServerInstanceUpdated(serverInstance));
verify(view, times(2)).clear();
verify(view, times(2)).setServerName(serverInstance.getServerName());
verify(view, times(2)).setServerURL(serverInstance.getUrl());
verify(view, times(2)).setEmptyView(remoteEmptyPresenter.getView());
}
Aggregations