@Test public void convert_shouldConvertString() { Assert.assertNull(converter.convert(null)); Assert.assertNull(converter.convert("")); Assert.assertThat(converter.convert("1"), is(Context.getConceptService().getConceptClass(1))); }
@Override public ConceptClass convert(String s) { return StringUtils.isEmpty(s) ? null : Context.getConceptService().getConceptClass(Integer.valueOf(s)); }
StringToConceptClassConverter implements Converter<String, ConceptClass> { @Override public ConceptClass convert(String s) { return StringUtils.isEmpty(s) ? null : Context.getConceptService().getConceptClass(Integer.valueOf(s)); } }
StringToConceptClassConverter implements Converter<String, ConceptClass> { @Override public ConceptClass convert(String s) { return StringUtils.isEmpty(s) ? null : Context.getConceptService().getConceptClass(Integer.valueOf(s)); }  }
StringToConceptClassConverter implements Converter<String, ConceptClass> { @Override public ConceptClass convert(String s) { return StringUtils.isEmpty(s) ? null : Context.getConceptService().getConceptClass(Integer.valueOf(s)); }  @Override ConceptClass convert(String s); }
StringToConceptClassConverter implements Converter<String, ConceptClass> { @Override public ConceptClass convert(String s) { return StringUtils.isEmpty(s) ? null : Context.getConceptService().getConceptClass(Integer.valueOf(s)); }  @Override ConceptClass convert(String s);  }