Home
last modified time | relevance | path

Searched refs:invocationInfo (Results 1 – 3 of 3) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DReturns.java31 InvocationInfo invocationInfo = new InvocationInfo(invocation); in validateFor() local
32 if (invocationInfo.isVoid()) { in validateFor()
33 throw cannotStubVoidMethodWithAReturnValue(invocationInfo.getMethodName()); in validateFor()
36 if (returnsNull() && invocationInfo.returnsPrimitive()) { in validateFor()
37 …throw wrongTypeOfReturnValue(invocationInfo.printMethodReturnType(), "null", invocationInfo.getMet… in validateFor()
40 if (!returnsNull() && !invocationInfo.isValidReturnType(returnType())) { in validateFor()
41 …throw wrongTypeOfReturnValue(invocationInfo.printMethodReturnType(), printReturnType(), invocation… in validateFor()
DDefaultAnswerValidator.java14 InvocationInfo invocationInfo = new InvocationInfo(invocation); in validateReturnValueFor() local
15 if (returnedValue != null && !invocationInfo.isValidReturnType(returnedValue.getClass())) { in validateReturnValueFor()
18 invocationInfo.printMethodReturnType(), in validateReturnValueFor()
20 invocationInfo.getMethodName()); in validateReturnValueFor()
DReturnsArgumentAt.java90 InvocationInfo invocationInfo = new InvocationInfo(invocation); in validateArgumentTypeCompatibility() local
94 if (!invocationInfo.isValidReturnType(inferredArgumentType)){ in validateArgumentTypeCompatibility()
96 invocationInfo.printMethodReturnType(), in validateArgumentTypeCompatibility()