Home
last modified time | relevance | path

Searched refs:validateFor (Results 1 – 14 of 14) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DReturnsTest.java22 new Returns("one").validateFor(new InvocationBuilder().method("voidMethod").toInvocation()); in should_fail_when_return_Value_is_set_for_void_method()
27 new Returns("one").validateFor(new InvocationBuilder().simpleMethod().toInvocation()); in should_allow_correct_type_of_return_value()
28 …new Returns(false).validateFor(new InvocationBuilder().method("booleanReturningMethod").toInvocati… in should_allow_correct_type_of_return_value()
29 …new Returns(TRUE).validateFor(new InvocationBuilder().method("booleanObjectReturningMethod").toInv… in should_allow_correct_type_of_return_value()
30 …new Returns(1).validateFor(new InvocationBuilder().method("integerReturningMethod").toInvocation()… in should_allow_correct_type_of_return_value()
31 … new Returns(1L).validateFor(new InvocationBuilder().method("longReturningMethod").toInvocation()); in should_allow_correct_type_of_return_value()
32 …new Returns(1L).validateFor(new InvocationBuilder().method("longObjectReturningMethod").toInvocati… in should_allow_correct_type_of_return_value()
33 …new Returns(null).validateFor(new InvocationBuilder().method("objectReturningMethodNoArgs").toInvo… in should_allow_correct_type_of_return_value()
34 …new Returns(1).validateFor(new InvocationBuilder().method("objectReturningMethodNoArgs").toInvocat… in should_allow_correct_type_of_return_value()
39 …new Returns("String").validateFor(new InvocationBuilder().method("booleanReturningMethod").toInvoc… in should_fail_on_return_type_mismatch()
[all …]
DReturnsArgumentAtTest.java46 … new ReturnsArgumentAt(1).validateFor(new InvocationBuilder().method("varargsReturningString") in should_identify_bad_parameter_type_for_invocation()
53 new ReturnsArgumentAt(0).validateFor(new InvocationBuilder().method("oneArray") in should_identify_bad_parameter_type_for_invocation()
60 … new ReturnsArgumentAt(0).validateFor(new InvocationBuilder().method("mixedVarargsReturningString") in should_identify_bad_parameter_type_for_invocation()
70 … new ReturnsArgumentAt(1).validateFor(new InvocationBuilder().method("mixedVarargsReturningString") in should_not_scream_when_mixed_vararg_parameter_is_compatible_with_invocation()
82 new ReturnsArgumentAt(1).validateFor(mixedVarargsReturningStringArray); in should_handle_returning_vararg_as_array()
89 new ReturnsArgumentAt(1).validateFor(mixedVarargsReturningObjectArray); in should_handle_returning_vararg_as_array()
108 new ReturnsArgumentAt(0).validateFor( in should_allow_possible_argument_types()
114 new ReturnsArgumentAt(0).validateFor( in should_allow_possible_argument_types()
120 new ReturnsArgumentAt(2).validateFor( in should_allow_possible_argument_types()
126 new ReturnsArgumentAt(1).validateFor( in should_allow_possible_argument_types()
[all …]
DThrowsExceptionTest.java65 new ThrowsException(null).validateFor(invocation); in should_invalidate_null_throwable()
82 new ThrowsException(new CharacterCodingException()).validateFor(createMethodInvocation()); in should_pass_proper_checked_exception()
87 new ThrowsException(new IOException()).validateFor(createMethodInvocation()); in should_fail_invalid_checked_exception()
92 new ThrowsException(new Error()).validateFor(createMethodInvocation()); in should_pass_RuntimeExceptions()
93 new ThrowsException(new RuntimeException()).validateFor(createMethodInvocation()); in should_pass_RuntimeExceptions()
DDoesNothingTest.java48 doesNothing().validateFor(invocation_String); in validateFor_nonVoidReturnType_shouldFail()
53 doesNothing().validateFor(invocation_void); in validateFor_voidReturnType_shouldPass()
58 doesNothing().validateFor(invocation_Void); in validateFor_voidObjectReturnType()
DCallsRealMethodsTest.java39 new CallsRealMethods().validateFor(invocationOnInterface); in should_fail_when_calling_real_method_on_interface()
52 new CallsRealMethods().validateFor(invocationOnClass); in should_be_OK_when_calling_real_method_on_concrete_class()
DAnswersWithDelayTest.java24 …new AnswersWithDelay(1, new Returns("one")).validateFor(new InvocationBuilder().method("voidMethod… in should_fail_when_contained_answer_should_fail()
29 …new AnswersWithDelay(1, new Returns("one")).validateFor(new InvocationBuilder().simpleMethod().toI… in should_succeed_when_contained_answer_should_succeed()
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DAnswersWithDelay.java41 public void validateFor(final InvocationOnMock invocation) { in validateFor() method in AnswersWithDelay
43 ((ValidableAnswer) answer).validateFor(invocation); in validateFor()
DDoesNothing.java33 public void validateFor(InvocationOnMock invocation) { in validateFor() method in DoesNothing
DCallsRealMethods.java47 public void validateFor(InvocationOnMock invocation) { in validateFor() method in CallsRealMethods
DReturns.java30 public void validateFor(InvocationOnMock invocation) { in validateFor() method in Returns
DThrowsException.java54 public void validateFor(InvocationOnMock invocation) { in validateFor() method in ThrowsException
DReturnsArgumentAt.java68 public void validateFor(InvocationOnMock invocation) { in validateFor() method in ReturnsArgumentAt
/external/mockito/src/main/java/org/mockito/stubbing/
DValidableAnswer.java91 void validateFor(InvocationOnMock invocation); in validateFor() method
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DInvocationContainerImpl.java70 ((ValidableAnswer) answer).validateFor(invocation); in addAnswer()