use of org.kie.server.controller.api.model.runtime.ServerInstanceKey in project kie-wb-common by kiegroup.
the class RemoteStatusPresenterTest method testSetup.
@Test
public void testSetup() {
final Container container = new Container("containerSpecId", "containerName", new ServerInstanceKey(), Collections.<Message>emptyList(), null, null);
presenter.setup(Collections.singletonList(container));
verify(containerCardPresenter).setup(container);
verify(view).addCard(any(Widget.class));
}
use of org.kie.server.controller.api.model.runtime.ServerInstanceKey in project kie-wb-common by kiegroup.
the class ConvertTest method testToKey.
@Test
public void testToKey() {
final String serverTemplateId = "serverTemplateId";
final String serverName = "serverName";
final String serverInstanceId = "serverInstanceId";
final String url = "url";
ServerInstance serverInstance = new ServerInstance(serverTemplateId, serverName, serverInstanceId, url, "version", new ArrayList<Message>(), new ArrayList<Container>());
ServerInstanceKey key = Convert.toKey(serverInstance);
assertEquals(serverTemplateId, key.getServerTemplateId());
assertEquals(serverName, key.getServerName());
assertEquals(serverInstanceId, key.getServerInstanceId());
assertEquals(url, key.getUrl());
}
Aggregations