@Test public void testResolveNameShouldReturnEmptyStringWhenResolvedNameIsEmpty() { given(restUrlMappingMessageNameResolver.resolve(request, parameters)).willReturn(""); String result = underTest.resolveName(parameters); String expected = ""; assertEquals(expected, result); }
@Override public String resolveName(final ParameterList parameters) { String name = restUrlMappingMessageNameResolver.resolve(request, parameters); return name.isEmpty() ? "" : name + POSTFIX; }
RestResponse implements Message { @Override public String resolveName(final ParameterList parameters) { String name = restUrlMappingMessageNameResolver.resolve(request, parameters); return name.isEmpty() ? "" : name + POSTFIX; } }
RestResponse implements Message { @Override public String resolveName(final ParameterList parameters) { String name = restUrlMappingMessageNameResolver.resolve(request, parameters); return name.isEmpty() ? "" : name + POSTFIX; } RestResponse(final WilmaHttpEntity entity, final Converter converter, final WilmaHttpRequest request); }
RestResponse implements Message { @Override public String resolveName(final ParameterList parameters) { String name = restUrlMappingMessageNameResolver.resolve(request, parameters); return name.isEmpty() ? "" : name + POSTFIX; } 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 resolveName(final ParameterList parameters) { String name = restUrlMappingMessageNameResolver.resolve(request, parameters); return name.isEmpty() ? "" : name + POSTFIX; } RestResponse(final WilmaHttpEntity entity, final Converter converter, final WilmaHttpRequest request); @Override String resolveName(final ParameterList parameters); @Override String convert(final String name);  }