Fixed a test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user