/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | StubbingUsingDoReturnTest.java | 8 import org.assertj.core.api.Assertions; 23 import static org.assertj.core.api.Assertions.assertThat; 40 Assertions.assertThat(mock.simpleMethod()).isEqualTo("bar"); in should_stub() 48 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_args() 49 Assertions.assertThat(mock.simpleMethod("one", 234)).isEqualTo("bar"); in should_stub_with_args() 50 Assertions.assertThat(mock.simpleMethod("xxx", 234)).isEqualTo(null); in should_stub_with_args() 125 Assertions.assertThat(mock.simpleMethod()).isEqualTo("foo"); in should_allow_chained_stubbing() 131 Assertions.assertThat(mock.simpleMethod()).isEqualTo("bar"); in should_allow_chained_stubbing() 132 Assertions.assertThat(mock.simpleMethod()).isEqualTo("bar"); in should_allow_chained_stubbing() 142 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo("foo"); in should_allow_consecutive_return_values() [all …]
|
/external/mockito/src/test/java/org/mockitousage/customization/ |
D | BDDMockitoTest.java | 7 import org.assertj.core.api.Assertions; 35 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("bar"); in should_stub() 36 Assertions.assertThat(mock.simpleMethod("whatever")).isEqualTo(null); in should_stub() 44 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_throwable() 55 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_throwable_class() 68 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_throwable_classes() 82 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_answer() 93 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_will_answer_alias() 102 Assertions.assertThat(mock.simpleMethod("whatever")).isEqualTo("foo"); in should_stub_consecutively() 103 Assertions.assertThat(mock.simpleMethod("whatever")).isEqualTo("bar"); in should_stub_consecutively() [all …]
|
/external/mockito/src/test/java/org/mockito/internal/exceptions/stacktrace/ |
D | StackTraceFilterTest.java | 8 import org.assertj.core.api.Assertions; 29 Assertions.assertThat(filtered).has(onlyThoseClasses("MockitoExampleTest")); in shouldFilterOutCglibGarbage() 41 Assertions.assertThat(filtered).has(onlyThoseClasses("MockitoExampleTest")); in shouldFilterOutByteBuddyGarbage() 54 Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest")); in shouldFilterOutMockitoPackage() 69 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.TestSupport", "org.test.TestSupport… in shouldNotFilterOutTracesMiddleGoodTraces() 83 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "junit.stuff", … in shouldKeepRunners() 99 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "junit.stuff", … in shouldNotFilterElementsAboveMockitoJUnitRule() 111 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "org.mockito.in… in shouldKeepInternalRunners() 127 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "org.test.Good"… in shouldStartFilteringAndKeepTop() 141 Assertions.assertThat(filtered).has(onlyThoseClasses( in shouldKeepGoodTraceFromTheTopBecauseRealImplementationsOfSpiesSometimesThrowExceptions()
|
D | ConditionalStackTraceFilterTest.java | 7 import org.assertj.core.api.Assertions; 30 …Assertions.assertThat(t).has(onlyThoseClassesInStackTrace("org.mockito.Mockito", "org.test.Mockito… in shouldNotFilterWhenConfigurationSaysNo() 44 Assertions.assertThat(t).has(onlyThoseClassesInStackTrace("org.test.MockitoSampleTest")); in shouldFilterWhenConfigurationSaysYes()
|
/external/mockito/src/test/java/org/mockitousage/stacktrace/ |
D | StackTraceFilteringTest.java | 8 import org.assertj.core.api.Assertions; 49 Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStackTraceOnVerify")); in shouldFilterStackTraceOnVerify() 60 …Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStackTraceOnVerifyNoMoreInteract… in shouldFilterStackTraceOnVerifyNoMoreInteractions() 71 …Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStackTraceOnVerifyZeroInteractio… in shouldFilterStackTraceOnVerifyZeroInteractions() 83 …Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStacktraceOnMockitoExcept… in shouldFilterStacktraceOnMockitoException() 98 …Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStacktraceWhenVerifyingInOrder")… in shouldFilterStacktraceWhenVerifyingInOrder() 108 …Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStacktraceWhenInOrderThro… in shouldFilterStacktraceWhenInOrderThrowsMockitoException() 119 …Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStacktraceWhenInOrderVeri… in shouldFilterStacktraceWhenInOrderVerifies() 129 …Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStackTraceWhenThrowingExc… in shouldFilterStackTraceWhenThrowingExceptionFromMockHandler() 141 … Assertions.assertThat(e).has(firstMethodInStackTrace("shouldShowProperExceptionStackTrace")); in shouldShowProperExceptionStackTrace()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | Conditions.java | 8 import org.assertj.core.api.Assertions; 26 Assertions.assertThat(trace.length) in onlyThoseClassesInStackTrace() 33 Assertions.assertThat(trace[i].getClassName()).isEqualTo(classes[i]); in onlyThoseClassesInStackTrace() 46 Assertions.assertThat(traceElements.length) 53 Assertions.assertThat(traceElements[i].getClassName()).isEqualTo(classes[i]); 100 Assertions.fail("Bridge method [" + methodName + "]\nnot found in:\n" + o); 115 …Assertions.assertThat(trace[i].getMethodName()).describedAs("Expected methods[%d] to be in the sta…
|
D | ClassLoadersTest.java | 8 import org.assertj.core.api.Assertions; 12 import static org.assertj.core.api.Assertions.assertThat; 270 .withCodeSourceUrlOf(Assertions.class) in can_run_in_given_classloader() 297 Assertions.fail("should not have raised a CNFE", cnfe); in can_run_in_given_classloader() 325 Assertions.fail("should have raised a ClassNotFoundException"); in cannot_load_runnable_in_given_classloader_if_some_type_cant_be_loaded()
|
/external/mockito/src/test/java/org/mockito/internal/creation/ |
D | MockSettingsImplTest.java | 7 import org.assertj.core.api.Assertions; 20 import static org.assertj.core.api.Assertions.assertThat; 112 Assertions.assertThat(mockSettingsImpl.getInvocationListeners()).hasSize(1); in shouldAddVerboseLoggingListenerOnlyOnce() 131 … Assertions.assertThat(mockSettingsImpl.getInvocationListeners()).contains(invocationListener); in shouldAddInvocationListener() 144 …Assertions.assertThat(mockSettingsImpl.getInvocationListeners()).containsSequence(invocationListen… in canAddDuplicateInvocationListeners_ItsNotOurBusinessThere() 153 Assertions.assertThat(e.getMessage()).contains("at least one listener"); in shouldReportErrorWhenAddingNoInvocationListeners() 163 Assertions.assertThat(e.getMessage()).contains("does not accept null"); in shouldReportErrorWhenAddingANullInvocationListener()
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/ |
D | ThrowsExceptionTest.java | 9 import org.assertj.core.api.Assertions; 16 import static org.assertj.core.api.Assertions.assertThat; 25 Assertions.fail("should have raised wanted exception"); in should_raise_wanted_throwable() 35 Assertions.fail("should have raised wanted exception"); in should_throw_mock_exception_without_stacktrace() 52 Assertions.fail("should have raised wanted exception"); in should_fill_in_exception_stacktrace() 66 Assertions.fail("should have raised a MockitoException"); in should_invalidate_null_throwable()
|
D | ReturnsArgumentAtTest.java | 7 import org.assertj.core.api.Assertions; 15 import static org.assertj.core.api.Assertions.assertThat; 50 Assertions.fail("should scream"); in should_identify_bad_parameter_type_for_invocation() 57 Assertions.fail("should scream"); in should_identify_bad_parameter_type_for_invocation() 64 Assertions.fail("should scream"); in should_identify_bad_parameter_type_for_invocation()
|
D | CallsRealMethodsTest.java | 12 import org.assertj.core.api.Assertions; 21 import static org.assertj.core.api.Assertions.assertThat; 41 Assertions.fail("can not invoke interface"); in should_fail_when_calling_real_method_on_interface()
|
/external/mockito/src/test/java/org/mockito/internal/invocation/ |
D | InvocationsFinderTest.java | 8 import org.assertj.core.api.Assertions; 53 … Assertions.assertThat(actual).containsSequence(simpleMethodInvocation, simpleMethodInvocationTwo); in shouldFindActualInvocations() 56 Assertions.assertThat(actual).containsSequence(differentMethodInvocation); in shouldFindActualInvocations() 142 …Assertions.assertThat(allMatching).containsSequence(simpleMethodInvocation, simpleMethodInvocation… in shouldFindAllMatchingUnverifiedChunks() 146 Assertions.assertThat(allMatching).containsSequence(simpleMethodInvocationTwo); in shouldFindAllMatchingUnverifiedChunks() 156 … Assertions.assertThat(chunk).containsSequence(simpleMethodInvocation, simpleMethodInvocationTwo); in shouldFindMatchingChunk() 165 …Assertions.assertThat(chunk).containsSequence(simpleMethodInvocation, simpleMethodInvocationTwo, s… in shouldReturnAllChunksWhenModeIsAtLeastOnce() 174 …Assertions.assertThat(chunk).containsSequence(simpleMethodInvocation, simpleMethodInvocationTwo, s… in shouldReturnAllChunksWhenWantedCountDoesntMatch() 192 …Assertions.assertThat(all).contains(simpleMethodInvocation.getLocation(), simpleMethodInvocationTw… in shouldFindAllStackTraces() 197 …Assertions.assertThat(InvocationsFinder.getAllLocations(Collections.<Invocation>emptyList())).isEm… in shouldNotFindLocationsForEmptyInvocationsList()
|
/external/mockito/src/test/java/org/mockito/ |
D | AnnotationsAreCopiedFromMockedTypeTest.java | 7 import org.assertj.core.api.Assertions; 31 Assertions.assertThat(onClassDefaultValue.value()).isEqualTo("yup"); in mock_should_have_annotations_copied_from_mocked_type_at_class_level() 32 Assertions.assertThat(onClassCustomValue.value()).isEqualTo("yay"); in mock_should_have_annotations_copied_from_mocked_type_at_class_level() 40 Assertions.assertThat(onClassDefaultValue.value()).isEqualTo("yup"); in mock_should_have_annotations_copied_from_mocked_type_on_methods() 41 Assertions.assertThat(onClassCustomValue.value()).isEqualTo("yay"); in mock_should_have_annotations_copied_from_mocked_type_on_methods() 49 Assertions.assertThat(onClassDefaultValue.value()).isEqualTo("yup"); in mock_should_have_annotations_copied_from_mocked_type_on_method_parameters() 50 Assertions.assertThat(onClassCustomValue.value()).isEqualTo("yay"); in mock_should_have_annotations_copied_from_mocked_type_on_method_parameters()
|
/external/mockito/src/test/java/org/mockitousage/matchers/ |
D | CapturingArgumentsTest.java | 8 import org.assertj.core.api.Assertions; 20 import static org.assertj.core.api.Assertions.assertThat; 170 Assertions.assertThat(argument.getAllValues()).containsOnly("bar"); in should_capture_when_stubbing_only_when_entire_invocation_matches() 234 Assertions.assertThat(argumentCaptor.getAllValues()).containsExactly((byte) 1, (byte) 2); in should_capture_byte_vararg_by_creating_captor_with_primitive() 248 Assertions.assertThat(argumentCaptor.getAllValues()).containsExactly((byte) 1, (byte) 2); in should_capture_byte_vararg_by_creating_captor_with_primitive_wrapper() 261 Assertions.assertThat(argumentCaptor.getAllValues()).containsExactly("a", "b", "c"); in should_capture_vararg() 276 … Assertions.assertThat(argumentCaptor.getAllValues()).containsExactly("a", "b", "c", "again ?!"); in should_capture_all_vararg() 289 Assertions.assertThat(argumentCaptor.getAllValues()).containsExactly("a"); in should_capture_one_arg_even_when_using_vararg_captor_on_nonvararg_method() 303 Assertions.assertThat(argumentCaptor.getAllValues()).containsExactly("a", "b", "c"); in captures_correctly_when_captor_used_multiple_times() 316 Assertions.assertThat(argumentCaptor.getValue()).contains("capturedValue"); in captures_correctly_when_captor_used_on_pure_vararg_method()
|
/external/mockito/src/test/java/org/mockitousage/verification/ |
D | VerificationWithTimeoutTest.java | 8 import org.assertj.core.api.Assertions; 67 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_timeout_and_fail() 86 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_timeout_and_fail_early() 114 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_times_x_and_fail() 149 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_at_least_and_fail() 174 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_only_and_fail() 192 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_only_and_fail_early()
|
D | VerificationWithAfterTest.java | 8 import org.assertj.core.api.Assertions; 24 import static org.assertj.core.api.Assertions.assertThatThrownBy; 66 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_after_and_fail() 93 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_time_x_and_fail() 119 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_at_least_and_fail() 146 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_at_most_and_fail() 169 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_never_and_fail() 194 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_only_and_fail()
|
D | PrintingVerboseTypesWithArgumentsTest.java | 8 import org.assertj.core.api.Assertions; 15 import static org.assertj.core.api.Assertions.assertThat; 79 Assertions.assertThat(e.getMessage()) in should_show_the_type_of_the_mismatching_argument_when_output_descriptions_for_invocations_are_different()
|
/external/mockito/src/test/java/org/mockitousage/debugging/ |
D | VerboseLoggingOfInvocationsOnMockTest.java | 7 import org.assertj.core.api.Assertions; 62 Assertions.assertThat(printed()) in shouldNotPrintInvocationOnMockWithoutSetting() 77 Assertions.assertThat(printed()) in shouldPrintUnstubbedInvocationOnMockToStdOut() 94 Assertions.assertThat(printed()) in shouldPrintStubbedInvocationOnMockToStdOut() 114 Assertions.assertThat(printed()) in shouldPrintThrowingInvocationOnMockToStdOut() 134 Assertions.assertThat(printed()) in shouldPrintRealInvocationOnSpyToStdOut()
|
/external/mockito/src/test/java/org/mockito/internal/util/ |
D | MockUtilTest.java | 8 import org.assertj.core.api.Assertions; 69 Assertions.assertThat(MockUtil.getMockName(mock).toString()).isEqualTo("newName"); in should_redefine_MockName_if_default() 77 Assertions.assertThat(MockUtil.getMockName(mock).toString()).isEqualTo("original"); in should_not_redefine_MockName_if_default() 86 Assertions.assertThat(MockUtil.typeMockabilityOf(FinalClass.class).mockable()) in should_know_if_type_is_mockable()
|
D | TimerTest.java | 7 import org.assertj.core.api.Assertions; 28 Assertions.assertThat(timer.isCounting()).isTrue(); in should_return_true_if_task_is_in_acceptable_time_bounds() 41 Assertions.assertThat(timer.isCounting()).isFalse(); in should_return_false_when_time_run_out()
|
/external/mockito/src/test/java/org/mockitousage/strictness/ |
D | StrictnessPerMockTest.java | 8 import org.assertj.core.api.Assertions; 62 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in potential_stubbing_problem() 77 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in unnecessary_stubbing() 101 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in verify_no_more_invocations()
|
/external/mockito/src/test/java/org/mockitousage/puzzlers/ |
D | BridgeMethodPuzzleTest.java | 8 import org.assertj.core.api.Assertions; 46 Assertions.assertThat(Sub.class).has(bridgeMethod("say")); in shouldHaveBridgeMethod() 47 Assertions.assertThat(s).has(bridgeMethod("say")); in shouldHaveBridgeMethod()
|
/external/mockito/src/test/java/org/mockito/internal/configuration/ |
D | GlobalConfigurationTest.java | 8 import org.assertj.core.api.Assertions; 17 import static org.assertj.core.api.Assertions.assertThat; 33 .withCodeSourceUrlOf(Assertions.class) in returns_mockito_annotation_engine_of_Plugins_if_no_MockitoConfiguration()
|
/external/mockito/src/test/java/org/mockito/internal/junit/util/ |
D | JUnitFailureHackerTest.java | 7 import org.assertj.core.api.Assertions; 15 import static org.assertj.core.api.Assertions.assertThat; 33 …Assertions.assertThat(actualExc.getStackTrace()).isEqualTo(failure.getException().getStackTrace()); in shouldReplaceException()
|
/external/swiftshader/third_party/LLVM/utils/release/ |
D | test-release.sh | 192 Assertions="no" 196 Assertions="yes" 200 Assertions="yes" 216 --enable-assertions=$Assertions" 220 --enable-assertions=$Assertions \
|