@Test(expected = IllegalArgumentException.class) public void testYaml2YamlBean_Null() throws Exception { this.converter.convertToYamlBean(null); }
@Override public ServiceTemplate convertToYamlBean(String yamlString) throws ConverterException { if (yamlString == null || yamlString.equals("")) { throw new IllegalArgumentException("YAML string may not be empty!"); } final YamlReader reader = new YamlReader(yamlString); adjustConfig(reader.getConfig()); try { return reader.read(ServiceTemplate.class); } catch (final YamlException e) { throw new ConverterException(e); } }
YamlBeansConverter implements IToscaYaml2YamlBeanConverter { @Override public ServiceTemplate convertToYamlBean(String yamlString) throws ConverterException { if (yamlString == null || yamlString.equals("")) { throw new IllegalArgumentException("YAML string may not be empty!"); } final YamlReader reader = new YamlReader(yamlString); adjustConfig(reader.getConfig()); try { return reader.read(ServiceTemplate.class); } catch (final YamlException e) { throw new ConverterException(e); } } }
YamlBeansConverter implements IToscaYaml2YamlBeanConverter { @Override public ServiceTemplate convertToYamlBean(String yamlString) throws ConverterException { if (yamlString == null || yamlString.equals("")) { throw new IllegalArgumentException("YAML string may not be empty!"); } final YamlReader reader = new YamlReader(yamlString); adjustConfig(reader.getConfig()); try { return reader.read(ServiceTemplate.class); } catch (final YamlException e) { throw new ConverterException(e); } }  }
YamlBeansConverter implements IToscaYaml2YamlBeanConverter { @Override public ServiceTemplate convertToYamlBean(String yamlString) throws ConverterException { if (yamlString == null || yamlString.equals("")) { throw new IllegalArgumentException("YAML string may not be empty!"); } final YamlReader reader = new YamlReader(yamlString); adjustConfig(reader.getConfig()); try { return reader.read(ServiceTemplate.class); } catch (final YamlException e) { throw new ConverterException(e); } }  @Override ServiceTemplate convertToYamlBean(String yamlString); @Override String convertToYaml(YAMLElement yamlRoot); }
YamlBeansConverter implements IToscaYaml2YamlBeanConverter { @Override public ServiceTemplate convertToYamlBean(String yamlString) throws ConverterException { if (yamlString == null || yamlString.equals("")) { throw new IllegalArgumentException("YAML string may not be empty!"); } final YamlReader reader = new YamlReader(yamlString); adjustConfig(reader.getConfig()); try { return reader.read(ServiceTemplate.class); } catch (final YamlException e) { throw new ConverterException(e); } }  @Override ServiceTemplate convertToYamlBean(String yamlString); @Override String convertToYaml(YAMLElement yamlRoot);  }