Home
last modified time | relevance | path

Searched refs:toInvocation (Results 1 – 25 of 30) sorted by relevance

12

/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DInvocationInfoTest.java24 Invocation invocation = new InvocationBuilder().method("canThrowException").toInvocation(); in should_know_valid_throwables()
38 .toInvocation()) in should_know_valid_return_types()
45 .toInvocation()) in should_know_valid_return_types()
52 .toInvocation()) in should_know_valid_return_types()
59 .toInvocation()) in should_know_valid_return_types()
66 .toInvocation()) in should_know_valid_return_types()
77 .toInvocation()) in should_know_when_invocation_returns_primitive()
84 .toInvocation()) in should_know_when_invocation_returns_primitive()
93 new InvocationBuilder().method("voidMethod").toInvocation()) in should_know_when_invocation_returns_void()
100 .toInvocation()) in should_know_when_invocation_returns_void()
[all …]
DReturnsTest.java24 .toInvocation())) in should_return_value()
36 .toInvocation()); in should_fail_when_return_Value_is_set_for_void_method()
45 new Returns("one").validateFor(new InvocationBuilder().simpleMethod().toInvocation()); in should_allow_correct_type_of_return_value()
48 new InvocationBuilder().method("booleanReturningMethod").toInvocation()); in should_allow_correct_type_of_return_value()
53 .toInvocation()); in should_allow_correct_type_of_return_value()
56 new InvocationBuilder().method("integerReturningMethod").toInvocation()); in should_allow_correct_type_of_return_value()
58 .validateFor(new InvocationBuilder().method("longReturningMethod").toInvocation()); in should_allow_correct_type_of_return_value()
61 new InvocationBuilder().method("longObjectReturningMethod").toInvocation()); in should_allow_correct_type_of_return_value()
66 .toInvocation()); in should_allow_correct_type_of_return_value()
71 .toInvocation()); in should_allow_correct_type_of_return_value()
[all …]
DReturnsArgumentAtTest.java51 .toInvocation()); in should_identify_bad_parameter_type_for_invocation()
62 .toInvocation()); in should_identify_bad_parameter_type_for_invocation()
73 .toInvocation()); in should_identify_bad_parameter_type_for_invocation()
88 .toInvocation()); in should_not_scream_when_mixed_vararg_parameter_is_compatible_with_invocation()
98 .toInvocation(); in should_handle_returning_vararg_as_array()
108 .toInvocation(); in should_handle_returning_vararg_as_array()
137 .toInvocation()); in should_allow_possible_argument_types()
144 .toInvocation()); in should_allow_possible_argument_types()
151 .toInvocation()); in should_allow_possible_argument_types()
158 .toInvocation()); in should_allow_possible_argument_types()
[all …]
DAnswersWithDelayTest.java26 .toInvocation())) in should_return_value()
38 .toInvocation()); in should_fail_when_contained_answer_should_fail()
53 .validateFor(new InvocationBuilder().simpleMethod().toInvocation()); in should_succeed_when_contained_answer_should_succeed()
63 testSubject.answer(new InvocationBuilder().method("oneArg").arg("A").toInvocation()); in should_delay()
DDefaultAnswerValidatorTest.java24 new InvocationBuilder().method("toString").toInvocation(), new AWrongType()); in should_fail_if_returned_value_of_answer_is_incompatible_with_return_type()
38 new InvocationBuilder().method("toString").toInvocation(), null); in should_not_fail_if_returned_value_of_answer_is_null()
DCallsRealMethodsTest.java25 new InvocationBuilder().method("booleanReturningMethod").toInvocation(); in should_delegate_to_returns_default_when_abstract_method()
34 new InvocationBuilder().method("simpleMethod").toInvocation(); in should_fail_when_calling_real_method_on_interface()
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/
DNumberOfInvocationsInOrderCheckerTest.java51 invocations = asList(buildSimpleMethod().toInvocation()); in shouldPassIfChunkMatches()
57 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooFewInvocations()
58 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooFewInvocations()
75 Invocation invocation = buildSimpleMethod().toInvocation(); in shouldMarkAsVerifiedInOrder()
89 asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportTooFewActual()
105 asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportWithAllInvocationsStackTrace()
136 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace()
137 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace()
138 Invocation third = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace()
154 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual()
[all …]
DNumberOfInvocationsCheckerTest.java45 asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportTooFewActual()
61 asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportAllInvocationsStackTrace()
92 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace()
93 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace()
94 Invocation third = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace()
113 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual()
114 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual()
129 Invocation invocation = buildSimpleMethodWithArgs("arg1").toInvocation(); in shouldReportNeverWantedButInvokedWithArgs()
148 Invocation first = buildSimpleMethodWithArgs("arg1").toInvocation(); in shouldReportNeverWantedButInvokedWithArgs_multipleInvocations()
149 Invocation second = buildSimpleMethodWithArgs("arg1").toInvocation(); in shouldReportNeverWantedButInvokedWithArgs_multipleInvocations()
[all …]
DAtLeastXNumberOfInvocationsCheckerTest.java27 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerifiedInOrder()
28 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldMarkActualInvocationsAsVerifiedInOrder()
42 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooFewInvocationsInOrder()
43 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldReportTooFewInvocationsInOrder()
61 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerified()
62 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldMarkActualInvocationsAsVerified()
75 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooFewInvocations()
76 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldReportTooFewInvocations()
DMissingInvocationInOrderCheckerTest.java47 invocations = asList(buildSimpleMethod().toInvocation()); in shouldPassWhenMatchingInteractionFound()
55 invocations = asList(buildDifferentMethod().toInvocation()); in shouldReportWantedButNotInvoked()
68 invocations = asList(buildIntArgMethod().arg(1111).toInvocation()); in shouldReportArgumentsAreDifferent()
86 Invocation invocation1 = buildIntArgMethod().arg(1111).toInvocation(); in shouldReportWantedDiffersFromActual()
87 Invocation invocation2 = buildIntArgMethod().arg(2222).toInvocation(); in shouldReportWantedDiffersFromActual()
DMissingInvocationCheckerTest.java40 invocations = asList(buildSimpleMethod().toInvocation()); in shouldPassBecauseActualInvocationFound()
48 invocations = asList(buildDifferentMethod().toInvocation()); in shouldReportWantedButNotInvoked()
65 invocations = asList(buildIntArgMethod(new InvocationBuilder()).arg(1111).toInvocation()); in shouldReportWantedInvocationDiffersFromActual()
84 buildIntArgMethod(new CustomInvocationBuilder()).arg(1111).toInvocation()); in shouldReportUsingInvocationDescription()
/external/mockito/src/test/java/org/mockito/internal/invocation/
DInvocationMatcherTest.java46 Invocation invocation = new InvocationBuilder().toInvocation(); in should_be_a_citizen_of_hashes()
47 Invocation invocationTwo = new InvocationBuilder().args("blah").toInvocation(); in should_be_a_citizen_of_hashes()
59 new InvocationMatcher(new InvocationBuilder().args("test").toInvocation()); in should_not_equal_if_number_of_arguments_differ()
61 new InvocationMatcher(new InvocationBuilder().args("test", 100).toInvocation()); in should_not_equal_if_number_of_arguments_differ()
71 new InvocationMatcher(new InvocationBuilder().toInvocation(), asList(m)); in should_to_string_with_matchers()
74 new InvocationMatcher(new InvocationBuilder().toInvocation(), asList(mTwo)); in should_to_string_with_matchers()
82 Invocation same = new InvocationBuilder().mock(mock).simpleMethod().toInvocation(); in should_know_if_is_similar_to()
85 Invocation different = new InvocationBuilder().mock(mock).differentMethod().toInvocation(); in should_know_if_is_similar_to()
91 Invocation verified = new InvocationBuilder().simpleMethod().verified().toInvocation(); in should_not_be_similar_to_verified_invocation()
98 new InvocationBuilder().simpleMethod().mock("different mock").toInvocation(); in should_not_be_similar_if_mocks_are_different()
[all …]
DInvocationsFinderTest.java41 new InvocationBuilder().mock(mock).simpleMethod().seq(1).toInvocation(); in setup()
43 new InvocationBuilder().mock(mock).simpleMethod().seq(2).toInvocation(); in setup()
45 new InvocationBuilder().mock(mock).differentMethod().seq(3).toInvocation(); in setup()
133 new InvocationBuilder().mock(mock).simpleMethod().arg("test").toInvocation(); in shouldFindFirstSimilarInvocationByName()
144 new InvocationBuilder().differentMethod().arg("test").toInvocation(); in shouldFindInvocationWithTheSameMethod()
194 Invocation simpleMethodInvocationThree = new InvocationBuilder().mock(mock).toInvocation(); in shouldReturnAllChunksWhenModeIsAtLeastOnce()
209 Invocation simpleMethodInvocationThree = new InvocationBuilder().mock(mock).toInvocation(); in shouldReturnAllChunksWhenWantedCountDoesntMatch()
DInvocationMarkerTest.java23 Invocation i = new InvocationBuilder().toInvocation(); in shouldMarkInvocationAsVerified()
37 Invocation i = new InvocationBuilder().toInvocation(); in shouldCaptureArguments()
58 Invocation i = new InvocationBuilder().toInvocation(); in shouldMarkInvocationsAsVerifiedInOrder()
DInvocationBuilder.java45 public Invocation toInvocation() { in toInvocation() method in InvocationBuilder
129 return new InvocationMatcher(toInvocation()); in toInvocationMatcher()
/external/mockito/src/test/java/org/mockito/internal/junit/
DStubbingArgMismatchesTest.java34 new InvocationBuilder().args("a").location("-> at A.java").toInvocation(), in logs_mismatch()
35 new InvocationBuilder().args("b").location("-> at B.java").toInvocation()); in logs_mismatch()
53 new InvocationBuilder().args("a").location("-> at A.java").toInvocation(); in multiple_matching_invocations_per_stub_plus_some_other_invocation()
55 new InvocationBuilder().args("x").location("-> at X.java").toInvocation(), in multiple_matching_invocations_per_stub_plus_some_other_invocation()
58 new InvocationBuilder().args("y").location("-> at Y.java").toInvocation(), in multiple_matching_invocations_per_stub_plus_some_other_invocation()
66 .toInvocation(), in multiple_matching_invocations_per_stub_plus_some_other_invocation()
71 .toInvocation()); in multiple_matching_invocations_per_stub_plus_some_other_invocation()
/external/mockito/src/test/java/org/mockito/internal/exceptions/
DReporterTest.java33 new InvocationBuilder().toInvocation(), in should_let_passing_null_last_actual_stack_trace()
59 .toInvocation(); in can_use_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_no_more_interaction_wanted()
79 .toInvocation(); in can_use_print_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_no_more_interaction_wanted_in_order()
98 .toInvocation(); in can_use_print_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_invalid_argument_position()
118 .toInvocation(); in can_use_print_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_wrong_argument_to_return()
139 Invocation dumb_invocation = new InvocationBuilder().toInvocation(); in can_use_print_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_delegate_method_dont_exists()
161 Invocation dumb_invocation = new InvocationBuilder().toInvocation(); in can_use_print_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_delegate_method_has_wrong_return_type()
/external/mockito/src/test/java/org/mockito/internal/verification/
DNoMoreInteractionsTest.java33 Invocation i = new InvocationBuilder().toInvocation(); in shouldVerifyInOrder()
49 Invocation i = new InvocationBuilder().toInvocation(); in shouldVerifyInOrderAndPass()
62 Invocation i = new InvocationBuilder().seq(1).toInvocation(); in shouldVerifyInOrderMultipleInvoctions()
63 Invocation i2 = new InvocationBuilder().seq(2).toInvocation(); in shouldVerifyInOrderMultipleInvoctions()
76 Invocation i = new InvocationBuilder().seq(1).toInvocation(); in shouldVerifyInOrderMultipleInvoctionsAndThrow()
77 Invocation i2 = new InvocationBuilder().seq(2).toInvocation(); in shouldVerifyInOrderMultipleInvoctionsAndThrow()
112 Invocation i = new InvocationBuilder().mock(mock).toInvocation(); in noMoreInteractionsInOrderExceptionMessageShouldDescribeMock()
DDefaultRegisteredInvocationsTest.java27 Invocation toString = new InvocationBuilder().method("toString").toInvocation(); in should_not_return_to_string_method()
28 Invocation simpleMethod = new InvocationBuilder().simpleMethod().toInvocation(); in should_not_return_to_string_method()
DOnlyTest.java50 Invocation invocation = new InvocationBuilder().toInvocation(); in shouldMarkAsVerified()
63 Invocation invocation = new InvocationBuilder().toInvocation(); in shouldNotMarkAsVerifiedWhenAssertionFailed()
/external/mockito/src/test/java/org/mockito/internal/exceptions/util/
DScenarioPrinterTest.java26 Invocation verified = new InvocationBuilder().simpleMethod().verified().toInvocation(); in shouldPrintInvocations()
27 Invocation unverified = new InvocationBuilder().differentMethod().toInvocation(); in shouldPrintInvocations()
39 Invocation unverified = new InvocationBuilder().differentMethod().toInvocation(); in shouldNotPrintInvocationsWhenSingleUnwanted()
/external/mockito/src/test/java/org/mockito/internal/stubbing/
DInvocationContainerImplStubbingTest.java43 simpleMethod = new InvocationBuilder().simpleMethod().toInvocation(); in setup()
70 Invocation differentMethod = new InvocationBuilder().differentMethod().toInvocation(); in should_get_results_for_methods()
90 Invocation differentMethod = new InvocationBuilder().differentMethod().toInvocation(); in should_get_results_for_methods_stub_only()
/external/mockito/src/test/java/org/mockito/internal/debugging/
DWarningsFinderTest.java30 Invocation unusedStub = new InvocationBuilder().simpleMethod().toInvocation(); in shouldPrintUnusedStub()
61 Invocation stub = new InvocationBuilder().arg("foo").mock(mock).toInvocation(); in shouldPrintStubWasUsedWithDifferentArgs()
DVerboseMockInvocationLoggerTest.java26 private Invocation invocation = new InvocationBuilder().toInvocation();
27 private DescribedInvocation stubbedInvocation = new InvocationBuilder().toInvocation();
/external/mockito/src/test/java/org/mockito/internal/handler/
DMockHandlerImplTest.java38 Invocation invocation = new InvocationBuilder().toInvocation(); in should_remove_verification_mode_even_when_invalid_matchers()
88 .toInvocation(); in should_report_bogus_default_answer()

12