Search in sources :

Example 26 with ServerTemplateKey

use of org.kie.server.controller.api.model.spec.ServerTemplateKey in project kie-wb-common by kiegroup.

the class ServerNavigationPresenterTest method testSetup.

@Test
public void testSetup() {
    final ServerTemplateKey serverTemplateKey = new ServerTemplateKey("ServerTemplateKeyId", "ServerTemplateKeyName");
    presenter.setup(serverTemplateKey, Collections.singletonList(serverTemplateKey));
    verify(view).clean();
    verify(view).addTemplate(serverTemplateKey.getId(), serverTemplateKey.getName());
}
Also used : ServerTemplateKey(org.kie.server.controller.api.model.spec.ServerTemplateKey) Test(org.junit.Test)

Aggregations

ServerTemplateKey (org.kie.server.controller.api.model.spec.ServerTemplateKey)26 Test (org.junit.Test)19 ServerTemplate (org.kie.server.controller.api.model.spec.ServerTemplate)11 ContainerSpec (org.kie.server.controller.api.model.spec.ContainerSpec)9 ServerTemplateSelected (org.kie.workbench.common.screens.server.management.client.events.ServerTemplateSelected)9 ReleaseId (org.kie.server.api.model.ReleaseId)8 Container (org.kie.server.controller.api.model.runtime.Container)5 ServerInstanceKey (org.kie.server.controller.api.model.runtime.ServerInstanceKey)5 ContainerSpecKey (org.kie.server.controller.api.model.spec.ContainerSpecKey)5 ProcessConfig (org.kie.server.controller.api.model.spec.ProcessConfig)5 RuleConfig (org.kie.server.controller.api.model.spec.RuleConfig)4 Capability (org.kie.server.controller.api.model.spec.Capability)3 ContainerConfig (org.kie.server.controller.api.model.spec.ContainerConfig)3 ServerTemplateKeyList (org.kie.server.controller.api.model.spec.ServerTemplateKeyList)3 ContainerSpecData (org.kie.workbench.common.screens.server.management.model.ContainerSpecData)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Before (org.junit.Before)2 ContainerSpecSelected (org.kie.workbench.common.screens.server.management.client.events.ContainerSpecSelected)2 ServerTemplatePresenter (org.kie.workbench.common.screens.server.management.client.navigation.template.ServerTemplatePresenter)2