Fixed a test

This commit is contained in:
Marcin Grzejszczak
2017-11-21 20:12:37 +01:00
parent 63118c79cb
commit 8a93262cb4

View File

@@ -32,7 +32,6 @@ public class TraceFeignAspectTests {
@Before
public void setup() {
stubPjp();
this.traceFeignAspect = new TraceFeignAspect(this.beanFactory) {
@Override Object executeTraceFeignClient(Object bean, ProceedingJoinPoint pjp) throws IOException {
return null;
@@ -40,13 +39,6 @@ public class TraceFeignAspectTests {
};
}
private void stubPjp() {
Request request = Request.create("foo", "bar", new HashMap<>(), new byte[] {}, Charset
.defaultCharset());
Request.Options options = new Request.Options();
given(this.pjp.getArgs()).willReturn(new Object[] {request, options} );
}
@Test
public void should_wrap_feign_client_in_trace_representation() throws Throwable {
given(this.pjp.getTarget()).willReturn(this.client);