@Test public void convert_shouldReturnNullIfPassedNull() { StringToGlobalPropertyConverter converter = new StringToGlobalPropertyConverter(); GlobalProperty prop = converter.convert(null); Assert.assertNull(prop); }
@Override public GlobalProperty convert(String propertyName) { if (StringUtils.isBlank(propertyName)) { return null; } return Context.getAdministrationService().getGlobalPropertyObject(propertyName); }
StringToGlobalPropertyConverter implements Converter<String, GlobalProperty> { @Override public GlobalProperty convert(String propertyName) { if (StringUtils.isBlank(propertyName)) { return null; } return Context.getAdministrationService().getGlobalPropertyObject(propertyName); } }
StringToGlobalPropertyConverter implements Converter<String, GlobalProperty> { @Override public GlobalProperty convert(String propertyName) { if (StringUtils.isBlank(propertyName)) { return null; } return Context.getAdministrationService().getGlobalPropertyObject(propertyName); }  }
StringToGlobalPropertyConverter implements Converter<String, GlobalProperty> { @Override public GlobalProperty convert(String propertyName) { if (StringUtils.isBlank(propertyName)) { return null; } return Context.getAdministrationService().getGlobalPropertyObject(propertyName); }  @Override GlobalProperty convert(String propertyName); }
StringToGlobalPropertyConverter implements Converter<String, GlobalProperty> { @Override public GlobalProperty convert(String propertyName) { if (StringUtils.isBlank(propertyName)) { return null; } return Context.getAdministrationService().getGlobalPropertyObject(propertyName); }  @Override GlobalProperty convert(String propertyName);  }