public InterceptedInvocation( Object mock, MockitoMethod mockitoMethod, Object[] arguments, SuperMethod superMethod, int sequenceNumber) { this.mock = mock; this.mockitoMethod = mockitoMethod; this.arguments = ArgumentsProcessor.expandVarArgs(mockitoMethod.isVarArgs(), arguments); this.rawArguments = arguments; this.superMethod = superMethod; this.sequenceNumber = sequenceNumber; location = new LocationImpl(); }
@Override public Class getRawReturnType() { return mockitoMethod.getReturnType(); }
@Override public Method getMethod() { return mockitoMethod.getJavaMethod(); }