@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()); }
@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; }
OpenShiftClientServiceImpl implements OpenShiftClientService { @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; } }
OpenShiftClientServiceImpl implements OpenShiftClientService { @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; } OpenShiftClientServiceImpl(); }
OpenShiftClientServiceImpl implements OpenShiftClientService { @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; } OpenShiftClientServiceImpl(); @Override DefaultSettings getDefaultSettings(); @Override TemplateDescriptorModel getTemplateModel(final String url); @Override boolean isValidProjectName(final String projectName); }
OpenShiftClientServiceImpl implements OpenShiftClientService { @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; } OpenShiftClientServiceImpl(); @Override DefaultSettings getDefaultSettings(); @Override TemplateDescriptorModel getTemplateModel(final String url); @Override boolean isValidProjectName(final String projectName);  }