/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/ |
D | InvocationInfoTest.java | 23 Invocation invocation = new InvocationBuilder().method("canThrowException").toInvocation(); in should_know_valid_throwables() 33 …vocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).isValidRetur… in should_know_valid_return_types() 34 …vocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).isValidRetur… in should_know_valid_return_types() 35 …w InvocationInfo(new InvocationBuilder().method("intReturningMethod").toInvocation()).isValidRetur… in should_know_valid_return_types() 36 …w InvocationInfo(new InvocationBuilder().method("intReturningMethod").toInvocation()).isValidRetur… in should_know_valid_return_types() 37 …vocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).isValidRetur… in should_know_valid_return_types() 42 …w InvocationInfo(new InvocationBuilder().method("intReturningMethod").toInvocation()).returnsPrimi… in should_know_when_invocation_returns_primitive() 43 …vocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).returnsPrimi… in should_know_when_invocation_returns_primitive() 48 …assertThat(new InvocationInfo(new InvocationBuilder().method("voidMethod").toInvocation()).isVoid(… in should_know_when_invocation_returns_void() 49 …vocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).isVoid()).is… in should_know_when_invocation_returns_void() [all …]
|
D | ReturnsTest.java | 17 …rns("value").answer(new InvocationBuilder().method("oneArg").arg("A").toInvocation())).isEqualTo("… in should_return_value() 22 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 …eturns(false).validateFor(new InvocationBuilder().method("booleanReturningMethod").toInvocation()); in should_allow_correct_type_of_return_value() 29 …s(TRUE).validateFor(new InvocationBuilder().method("booleanObjectReturningMethod").toInvocation()); in should_allow_correct_type_of_return_value() 30 …ew 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 …eturns(1L).validateFor(new InvocationBuilder().method("longObjectReturningMethod").toInvocation()); in should_allow_correct_type_of_return_value() 33 …ns(null).validateFor(new InvocationBuilder().method("objectReturningMethodNoArgs").toInvocation()); in should_allow_correct_type_of_return_value() 34 …turns(1).validateFor(new InvocationBuilder().method("objectReturningMethodNoArgs").toInvocation()); in should_allow_correct_type_of_return_value() [all …]
|
D | ReturnsArgumentAtTest.java | 49 .toInvocation()); in should_identify_bad_parameter_type_for_invocation() 56 .toInvocation()); in should_identify_bad_parameter_type_for_invocation() 63 .toInvocation()); in should_identify_bad_parameter_type_for_invocation() 73 .toInvocation()); in should_not_scream_when_mixed_vararg_parameter_is_compatible_with_invocation() 81 .toInvocation(); in should_handle_returning_vararg_as_array() 88 .toInvocation(); in should_handle_returning_vararg_as_array() 112 .toInvocation() in should_allow_possible_argument_types() 118 .toInvocation() in should_allow_possible_argument_types() 124 .toInvocation() in should_allow_possible_argument_types() 130 .toInvocation() in should_allow_possible_argument_types() [all …]
|
D | AnswersWithDelayTest.java | 19 …ns("value")).answer(new InvocationBuilder().method("oneArg").arg("A").toInvocation())).isEqualTo("… in should_return_value() 24 …ay(1, new Returns("one")).validateFor(new InvocationBuilder().method("voidMethod").toInvocation()); in should_fail_when_contained_answer_should_fail() 29 …ithDelay(1, new Returns("one")).validateFor(new InvocationBuilder().simpleMethod().toInvocation()); in should_succeed_when_contained_answer_should_succeed() 39 testSubject.answer(new InvocationBuilder().method("oneArg").arg("A").toInvocation()); in should_delay()
|
D | DefaultAnswerValidatorTest.java | 23 …ltAnswerValidator.validateReturnValueFor(new InvocationBuilder().method("toString").toInvocation(), in should_fail_if_returned_value_of_answer_is_incompatible_with_return_type() 37 …ltAnswerValidator.validateReturnValueFor(new InvocationBuilder().method("toString").toInvocation(), in should_not_fail_if_returned_value_of_answer_is_null()
|
D | CallsRealMethodsTest.java | 29 …nvocation abstractMethod = new InvocationBuilder().method("booleanReturningMethod").toInvocation(); in should_delegate_to_returns_default_when_abstract_method() 36 … Invocation invocationOnInterface = new InvocationBuilder().method("simpleMethod").toInvocation(); in should_fail_when_calling_real_method_on_interface()
|
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/ |
D | NumberOfInvocationsInOrderCheckerTest.java | 59 invocations = asList(buildSimpleMethod().toInvocation()); in shouldPassIfChunkMatches() 65 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooLittleInvocations() 66 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooLittleInvocations() 81 Invocation invocation = buildSimpleMethod().toInvocation(); in shouldMarkAsVerifiedInOrder() 94 … invocations = asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportTooLittleActual() 107 … invocations = asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportWithAllInvocationsStackTrace() 135 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace() 136 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace() 137 Invocation third = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace() 149 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual() [all …]
|
D | AtLeastXNumberOfInvocationsCheckerTest.java | 31 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerifiedInOrder() 32 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldMarkActualInvocationsAsVerifiedInOrder() 45 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooLittleInvocationsInOrder() 46 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldReportTooLittleInvocationsInOrder() 62 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerified() 63 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldMarkActualInvocationsAsVerified() 75 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooLittleInvocations() 76 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldReportTooLittleInvocations()
|
D | NumberOfInvocationsCheckerTest.java | 50 … invocations = asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportTooLittleActual() 63 … invocations = asList(buildSimpleMethod().toInvocation(), buildSimpleMethod().toInvocation()); in shouldReportAllInvocationsStackTrace() 90 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace() 91 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace() 92 Invocation third = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace() 106 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual() 107 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual() 120 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportNeverWantedButInvoked() 135 Invocation invocation = buildSimpleMethod().toInvocation(); in shouldMarkInvocationsAsVerified()
|
D | MissingInvocationInOrderCheckerTest.java | 53 invocations = asList(buildSimpleMethod().toInvocation()); in shouldPassWhenMatchingInteractionFound() 61 invocations = asList(buildDifferentMethod().toInvocation()); in shouldReportWantedButNotInvoked() 73 invocations = asList(buildIntArgMethod().arg(1111).toInvocation()); in shouldReportArgumentsAreDifferent() 90 Invocation invocation1 = buildIntArgMethod().arg(1111).toInvocation(); in shouldReportWantedDiffersFromActual() 91 Invocation invocation2 = buildIntArgMethod().arg(2222).toInvocation(); in shouldReportWantedDiffersFromActual()
|
D | MissingInvocationCheckerTest.java | 37 invocations = asList(buildSimpleMethod().toInvocation()); in shouldPassBecauseActualInvocationFound() 45 invocations = asList(buildDifferentMethod().toInvocation()); in shouldReportWantedButNotInvoked() 59 invocations = asList(buildIntArgMethod().arg(1111).toInvocation()); in shouldReportWantedInvocationDiffersFromActual()
|
/external/mockito/src/test/java/org/mockito/internal/invocation/ |
D | InvocationMatcherTest.java | 45 Invocation invocation = new InvocationBuilder().toInvocation(); in should_be_a_citizen_of_hashes() 46 Invocation invocationTwo = new InvocationBuilder().args("blah").toInvocation(); in should_be_a_citizen_of_hashes() 57 …ionMatcher withOneArg = new InvocationMatcher(new InvocationBuilder().args("test").toInvocation()); in should_not_equal_if_number_of_arguments_differ() 58 …cher withTwoArgs = new InvocationMatcher(new InvocationBuilder().args("test", 100).toInvocation()); in should_not_equal_if_number_of_arguments_differ() 67 …InvocationMatcher notNull = new InvocationMatcher(new InvocationBuilder().toInvocation(), asList(m… in should_to_string_with_matchers() 69 …InvocationMatcher equals = new InvocationMatcher(new InvocationBuilder().toInvocation(), asList(mT… in should_to_string_with_matchers() 77 Invocation same = new InvocationBuilder().mock(mock).simpleMethod().toInvocation(); in should_know_if_is_similar_to() 80 Invocation different = new InvocationBuilder().mock(mock).differentMethod().toInvocation(); in should_know_if_is_similar_to() 86 Invocation verified = new InvocationBuilder().simpleMethod().verified().toInvocation(); in should_not_be_similar_to_verified_invocation() 92 …ion onDifferentMock = new InvocationBuilder().simpleMethod().mock("different mock").toInvocation(); in should_not_be_similar_if_mocks_are_different() [all …]
|
D | InvocationsFinderTest.java | 43 … simpleMethodInvocation = new InvocationBuilder().mock(mock).simpleMethod().seq(1).toInvocation(); in setup() 44 …impleMethodInvocationTwo = new InvocationBuilder().mock(mock).simpleMethod().seq(2).toInvocation(); in setup() 45 …erentMethodInvocation = new InvocationBuilder().mock(mock).differentMethod().seq(3).toInvocation(); in setup() 115 …rloadedSimpleMethod = new InvocationBuilder().mock(mock).simpleMethod().arg("test").toInvocation(); in shouldFindFirstSimilarInvocationByName() 123 …n overloadedDifferentMethod = new InvocationBuilder().differentMethod().arg("test").toInvocation(); in shouldFindInvocationWithTheSameMethod() 161 Invocation simpleMethodInvocationThree = new InvocationBuilder().mock(mock).toInvocation(); in shouldReturnAllChunksWhenModeIsAtLeastOnce() 170 Invocation simpleMethodInvocationThree = new InvocationBuilder().mock(mock).toInvocation(); in shouldReturnAllChunksWhenWantedCountDoesntMatch()
|
D | InvocationMarkerTest.java | 23 Invocation i = new InvocationBuilder().toInvocation(); in shouldMarkInvocationAsVerified() 37 Invocation i = new InvocationBuilder().toInvocation(); in shouldCaptureArguments() 56 Invocation i = new InvocationBuilder().toInvocation(); in shouldMarkInvocationsAsVerifiedInOrder()
|
D | InvocationBuilder.java | 44 public Invocation toInvocation() { in toInvocation() method in InvocationBuilder 112 return new InvocationMatcher(toInvocation()); in toInvocationMatcher()
|
/external/mockito/src/test/java/org/mockito/internal/junit/ |
D | StubbingArgMismatchesTest.java | 34 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() 50 … Invocation stubbing = new InvocationBuilder().args("a").location("-> at A.java").toInvocation(); in multiple_matching_invocations_per_stub_plus_some_other_invocation() 51 …mismatches.add(new InvocationBuilder().args("x").location("-> at X.java").toInvocation(), stubbing… in multiple_matching_invocations_per_stub_plus_some_other_invocation() 52 …mismatches.add(new InvocationBuilder().args("y").location("-> at Y.java").toInvocation(), stubbing… in multiple_matching_invocations_per_stub_plus_some_other_invocation() 55 …ew InvocationBuilder().method("differentMethod").args("n").location("-> at N.java").toInvocation(), in multiple_matching_invocations_per_stub_plus_some_other_invocation() 56 …w InvocationBuilder().method("differentMethod").args("m").location("-> at M.java").toInvocation()); in multiple_matching_invocations_per_stub_plus_some_other_invocation()
|
/external/mockito/src/test/java/org/mockito/internal/exceptions/ |
D | ReporterTest.java | 29 …ew org.mockito.internal.reporting.Discrepancy(1, 2), new InvocationBuilder().toInvocation(), null); in should_let_passing_null_last_actual_stack_trace() 39 …ult_answer = new InvocationBuilder().mock(mock(IMethods.class, new Returns(false))).toInvocation(); in can_use_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_no_more_interaction_wanted() 45 …ult_answer = new InvocationBuilder().mock(mock(IMethods.class, new Returns(false))).toInvocation(); in can_use_print_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_no_more_interaction_wanted_in_order() 51 …ult_answer = new InvocationBuilder().mock(mock(IMethods.class, new Returns(false))).toInvocation(); in can_use_print_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_invalid_argument_position() 57 …ult_answer = new InvocationBuilder().mock(mock(IMethods.class, new Returns(false))).toInvocation(); in can_use_print_mock_name_even_when_mock_bogus_default_answer_and_when_reporting_wrong_argument_to_return() 63 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() 70 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/ |
D | NoMoreInteractionsTest.java | 32 Invocation i = new InvocationBuilder().toInvocation(); in shouldVerifyInOrder() 47 Invocation i = new InvocationBuilder().toInvocation(); in shouldVerifyInOrderAndPass() 60 Invocation i = new InvocationBuilder().seq(1).toInvocation(); in shouldVerifyInOrderMultipleInvoctions() 61 Invocation i2 = new InvocationBuilder().seq(2).toInvocation(); in shouldVerifyInOrderMultipleInvoctions() 74 Invocation i = new InvocationBuilder().seq(1).toInvocation(); in shouldVerifyInOrderMultipleInvoctionsAndThrow() 75 Invocation i2 = new InvocationBuilder().seq(2).toInvocation(); in shouldVerifyInOrderMultipleInvoctionsAndThrow() 110 Invocation i = new InvocationBuilder().mock(mock).toInvocation(); in noMoreInteractionsInOrderExceptionMessageShouldDescribeMock()
|
D | DefaultRegisteredInvocationsTest.java | 28 Invocation toString = new InvocationBuilder().method("toString").toInvocation(); in should_not_return_to_string_method() 29 Invocation simpleMethod = new InvocationBuilder().simpleMethod().toInvocation(); in should_not_return_to_string_method()
|
D | OnlyTest.java | 50 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/ |
D | ScenarioPrinterTest.java | 25 Invocation verified = new InvocationBuilder().simpleMethod().verified().toInvocation(); in shouldPrintInvocations() 26 Invocation unverified = new InvocationBuilder().differentMethod().toInvocation(); in shouldPrintInvocations() 40 Invocation unverified = new InvocationBuilder().differentMethod().toInvocation(); in shouldNotPrintInvocationsWhenSingleUnwanted()
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/ |
D | InvocationContainerImplStubbingTest.java | 42 simpleMethod = new InvocationBuilder().simpleMethod().toInvocation(); in setup() 68 Invocation differentMethod = new InvocationBuilder().differentMethod().toInvocation(); in should_get_results_for_methods() 85 Invocation differentMethod = new InvocationBuilder().differentMethod().toInvocation(); in should_get_results_for_methods_stub_only()
|
/external/mockito/src/test/java/org/mockito/internal/debugging/ |
D | WarningsFinderTest.java | 29 Invocation unusedStub = new InvocationBuilder().simpleMethod().toInvocation(); in shouldPrintUnusedStub() 55 Invocation stub = new InvocationBuilder().arg("foo").mock(mock).toInvocation(); in shouldPrintStubWasUsedWithDifferentArgs()
|
D | VerboseMockInvocationLoggerTest.java | 26 private Invocation invocation = new InvocationBuilder().toInvocation(); 27 private DescribedInvocation stubbedInvocation = new InvocationBuilder().toInvocation();
|
/external/mockito/src/test/java/org/mockito/internal/handler/ |
D | MockHandlerImplTest.java | 45 Invocation invocation = new InvocationBuilder().toInvocation(); in should_remove_verification_mode_even_when_invalid_matchers() 87 … new InvocationBuilder().method(Object.class.getDeclaredMethod("toString")).toInvocation() in should_report_bogus_default_answer()
|