Skip to content

Commit

Permalink
fixed files form Mockito #31
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent addde9f commit a3086ad
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.Arrays;

import org.mockito.Mockito;
import org.mockito.cglib.proxy.MethodInterceptor;
Expand Down Expand Up @@ -57,7 +58,8 @@ public Object intercept(Object obj, Method method, Object[] args, MethodProxy pr
}

private String formatMethodCall() {
return invocation.getMethod().getName() + "()";
String args = Arrays.toString(invocation.getArguments());
return invocation.getMethod().getName() + "(" + args.substring(1, args.length() - 1) + ")";
}
}

Expand Down

0 comments on commit a3086ad

Please sign in to comment.