@Test public void testConvertShouldReturnWhatConverterReturns() { given(entity.getBody()).willReturn("data"); given(converter.convert("data", "name")).willReturn("converted data"); String result = underTest.convert("name"); assertEquals("converted data", result); }
@Override public String convert(final String name) { return converter.convert(entity.getBody(), name); }
RestResponse implements Message { @Override public String convert(final String name) { return converter.convert(entity.getBody(), name); } }
RestResponse implements Message { @Override public String convert(final String name) { return converter.convert(entity.getBody(), name); } RestResponse(final WilmaHttpEntity entity, final Converter converter, final WilmaHttpRequest request); }
RestResponse implements Message { @Override public String convert(final String name) { return converter.convert(entity.getBody(), name); } RestResponse(final WilmaHttpEntity entity, final Converter converter, final WilmaHttpRequest request); @Override String resolveName(final ParameterList parameters); @Override String convert(final String name); }
RestResponse implements Message { @Override public String convert(final String name) { return converter.convert(entity.getBody(), name); } RestResponse(final WilmaHttpEntity entity, final Converter converter, final WilmaHttpRequest request); @Override String resolveName(final ParameterList parameters); @Override String convert(final String name);  }