use of org.mockito.internal.verification.DummyVerificationMode in project mockito by mockito.
the class VerificationWithAfterTest method should_return_formatted_output_from_toString_using_wrapped_verification_mode.
@Test
public void should_return_formatted_output_from_toString_using_wrapped_verification_mode() {
org.mockito.verification.After after = new org.mockito.verification.After(10, new DummyVerificationMode());
assertThat(after).hasToString("Wanted after 10 ms: [Dummy verification mode]");
}
use of org.mockito.internal.verification.DummyVerificationMode in project mockito by mockito.
the class VerificationWithTimeoutTest method should_return_formatted_output_from_toString_using_wrapped_verification_mode.
@Test
public void should_return_formatted_output_from_toString_using_wrapped_verification_mode() {
VerificationMode timeoutAndAtLeastOnce = new Timeout(9, new DummyVerificationMode());
assertThat(timeoutAndAtLeastOnce).hasToString("Wanted after at most 9 ms: [Dummy verification mode]");
}
use of org.mockito.internal.verification.DummyVerificationMode in project mockito by mockito.
the class ThreadSafeMockingProgressTest method shouldShareState.
@Test
public void shouldShareState() throws Exception {
// given
MockingProgress p = mockingProgress();
p.verificationStarted(new DummyVerificationMode());
// then
p = mockingProgress();
assertNotNull(p.pullVerificationMode());
}
Aggregations