@Test public void testConvert() { String source = "SC_KEY"; SystemCodes sc = new SystemCodes("SC_CATEGORY", "SC_KEY", "SC Value"); Mockito.when(systemCodesService.findByKey(source)).thenReturn(sc); SystemCodes actual = converter.convert(source); assertEquals(sc, actual); }
@Override public SystemCodes convert(String source) { return systemCodesService.findByKey(source); }
StringToSystemCodesConverter implements Converter<String, SystemCodes> { @Override public SystemCodes convert(String source) { return systemCodesService.findByKey(source); } }
StringToSystemCodesConverter implements Converter<String, SystemCodes> { @Override public SystemCodes convert(String source) { return systemCodesService.findByKey(source); }  }
StringToSystemCodesConverter implements Converter<String, SystemCodes> { @Override public SystemCodes convert(String source) { return systemCodesService.findByKey(source); }  @Override SystemCodes convert(String source); }
StringToSystemCodesConverter implements Converter<String, SystemCodes> { @Override public SystemCodes convert(String source) { return systemCodesService.findByKey(source); }  @Override SystemCodes convert(String source);  }