Searched refs:Assertions (Results 1 – 25 of 3089) sorted by relevance
12345678910>>...124
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 …]
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 …]
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()
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()
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()
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…
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
META-INF/ META-INF/MANIFEST.MF kotlin/ kotlin/test/ kotlin/ ...
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()
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()
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()
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()
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()
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()
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()
192 Assertions="no"196 Assertions="yes"200 Assertions="yes"216 --enable-assertions=$Assertions"220 --enable-assertions=$Assertions \