Searched refs:invocationInfo (Results 1 – 3 of 3) sorted by relevance
31 InvocationInfo invocationInfo = new InvocationInfo(invocation); in validateFor() local32 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()
14 InvocationInfo invocationInfo = new InvocationInfo(invocation); in validateReturnValueFor() local15 if (returnedValue != null && !invocationInfo.isValidReturnType(returnedValue.getClass())) { in validateReturnValueFor()18 invocationInfo.printMethodReturnType(), in validateReturnValueFor()20 invocationInfo.getMethodName()); in validateReturnValueFor()
90 InvocationInfo invocationInfo = new InvocationInfo(invocation); in validateArgumentTypeCompatibility() local94 if (!invocationInfo.isValidReturnType(inferredArgumentType)){ in validateArgumentTypeCompatibility()96 invocationInfo.printMethodReturnType(), in validateArgumentTypeCompatibility()