use of org.guvnor.ala.ui.openshift.model.TemplateDescriptorModel in project kie-wb-common by kiegroup.
the class OpenShiftClientServiceImpl method getTemplateModel.
@Override
public TemplateDescriptorModel getTemplateModel(final String url) {
checkNotNull("url", url);
OpenShiftTemplate template = new OpenShiftTemplate(url);
List<TemplateParam> params = buildTemplateParams(template);
final TemplateDescriptorModel descriptorModel = new TemplateDescriptorModel(params);
return descriptorModel;
}
use of org.guvnor.ala.ui.openshift.model.TemplateDescriptorModel in project kie-wb-common by kiegroup.
the class OpenShiftClientServiceImplTest method testGetTemplateModel.
@Test
public void testGetTemplateModel() throws Exception {
String url = getClass().getClassLoader().getResource(TEMPLATE).toString();
TemplateDescriptorModel model = service.getTemplateModel(url);
List<TemplateParam> expectedParams = buildExpectedParams(PARAMS_COUNT);
assertEquals(expectedParams, model.getParams());
}
Aggregations