Home
last modified time | relevance | path

Searched refs:expectMessage (Results 1 – 18 of 18) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/verification/checkers/
DNumberOfInvocationsInOrderCheckerTest.java72 exception.expectMessage("mock.simpleMethod()"); in shouldReportTooLittleInvocations()
73 exception.expectMessage("Wanted 4 times"); in shouldReportTooLittleInvocations()
74 exception.expectMessage("But was 2 times"); in shouldReportTooLittleInvocations()
97 exception.expectMessage("mock.simpleMethod()"); in shouldReportTooLittleActual()
98 exception.expectMessage("Wanted 100 times"); in shouldReportTooLittleActual()
99 exception.expectMessage("But was 2 times"); in shouldReportTooLittleActual()
110 exception.expectMessage("mock.simpleMethod()"); in shouldReportWithLastInvocationStackTrace()
111 exception.expectMessage("Wanted 100 times"); in shouldReportWithLastInvocationStackTrace()
112 exception.expectMessage("But was 2 times"); in shouldReportWithLastInvocationStackTrace()
113 exception.expectMessage(containsTimes("-> at", 2)); in shouldReportWithLastInvocationStackTrace()
[all …]
DNumberOfInvocationsCheckerTest.java53 exception.expectMessage("mock.simpleMethod()"); in shouldReportTooLittleActual()
54 exception.expectMessage("Wanted 100 times"); in shouldReportTooLittleActual()
55 exception.expectMessage("But was 2 times"); in shouldReportTooLittleActual()
66 exception.expectMessage("mock.simpleMethod()"); in shouldReportWithLastInvocationStackTrace()
67 exception.expectMessage("Wanted 100 times"); in shouldReportWithLastInvocationStackTrace()
68 exception.expectMessage("But was 2 times"); in shouldReportWithLastInvocationStackTrace()
69 exception.expectMessage(containsTimes("-> at", 2)); in shouldReportWithLastInvocationStackTrace()
80 exception.expectMessage("mock.simpleMethod()"); in shouldNotReportWithLastInvocationStackTraceIfNoInvocationsFound()
81 exception.expectMessage("Wanted 100 times"); in shouldNotReportWithLastInvocationStackTraceIfNoInvocationsFound()
82 exception.expectMessage("But was 0 times"); in shouldNotReportWithLastInvocationStackTraceIfNoInvocationsFound()
[all …]
DMissingInvocationInOrderCheckerTest.java66 exception.expectMessage("Wanted but not invoked:"); in shouldReportWantedButNotInvoked()
67 exception.expectMessage("mock.simpleMethod()"); in shouldReportWantedButNotInvoked()
79 exception.expectMessage("Argument(s) are different! Wanted:"); in shouldReportArgumentsAreDifferent()
80 exception.expectMessage("mock.intArgumentMethod(2222);"); in shouldReportArgumentsAreDifferent()
81 exception.expectMessage("Actual invocation has different arguments:"); in shouldReportArgumentsAreDifferent()
82 exception.expectMessage("mock.intArgumentMethod(1111);"); in shouldReportArgumentsAreDifferent()
100 exception.expectMessage("Verification in order failure"); in shouldReportWantedDiffersFromActual()
101 exception.expectMessage("Wanted but not invoked:"); in shouldReportWantedDiffersFromActual()
102 exception.expectMessage("mock.intArgumentMethod(2222);"); in shouldReportWantedDiffersFromActual()
103 exception.expectMessage("Wanted anywhere AFTER following interaction:"); in shouldReportWantedDiffersFromActual()
[all …]
DMissingInvocationCheckerTest.java48 exception.expectMessage("Wanted but not invoked:"); in shouldReportWantedButNotInvoked()
49 exception.expectMessage("mock.simpleMethod()"); in shouldReportWantedButNotInvoked()
50 exception.expectMessage("However, there was exactly 1 interaction with this mock:"); in shouldReportWantedButNotInvoked()
51 exception.expectMessage("mock.differentMethod();"); in shouldReportWantedButNotInvoked()
63 exception.expectMessage("Argument(s) are different! Wanted:"); in shouldReportWantedInvocationDiffersFromActual()
64 exception.expectMessage("mock.intArgumentMethod(2222);"); in shouldReportWantedInvocationDiffersFromActual()
65 exception.expectMessage("Actual invocation has different arguments:"); in shouldReportWantedInvocationDiffersFromActual()
66 exception.expectMessage("mock.intArgumentMethod(1111);"); in shouldReportWantedInvocationDiffersFromActual()
DAtLeastXNumberOfInvocationsCheckerTest.java49 exception.expectMessage("iMethods.simpleMethod()"); in shouldReportTooLittleInvocationsInOrder()
50 exception.expectMessage("Wanted *at least* 2 times"); in shouldReportTooLittleInvocationsInOrder()
51 exception.expectMessage("But was 1 time"); in shouldReportTooLittleInvocationsInOrder()
79 exception.expectMessage("iMethods.simpleMethod()"); in shouldReportTooLittleInvocations()
80 exception.expectMessage("Wanted *at least* 2 times"); in shouldReportTooLittleInvocations()
81 exception.expectMessage("But was 1 time"); in shouldReportTooLittleInvocations()
/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationInOrderWithCallsTest.java35 exceptionRule.expectMessage( "Verification in order failure" ); in shouldFailWhenMethodNotCalled()
36 exceptionRule.expectMessage( "Wanted but not invoked" ); in shouldFailWhenMethodNotCalled()
37 exceptionRule.expectMessage( "mockOne.oneArg(2)" ); in shouldFailWhenMethodNotCalled()
55 exceptionRule.expectMessage( "Verification in order failure" ); in shouldFailWhenMethodCalledTooFewTimes()
56 exceptionRule.expectMessage( "mockOne.oneArg(2)" ); in shouldFailWhenMethodCalledTooFewTimes()
57 exceptionRule.expectMessage( "Wanted 2 times" ); in shouldFailWhenMethodCalledTooFewTimes()
58 exceptionRule.expectMessage( "But was 1 time" ); in shouldFailWhenMethodCalledTooFewTimes()
76 exceptionRule.expectMessage( "Verification in order failure" ); in shouldFailWhenSingleMethodCallsAreOutOfSequence()
77 exceptionRule.expectMessage( "Wanted but not invoked" ); in shouldFailWhenSingleMethodCallsAreOutOfSequence()
78 exceptionRule.expectMessage( "mockOne.oneArg(1)" ); in shouldFailWhenSingleMethodCallsAreOutOfSequence()
[all …]
/external/junit/src/main/java/org/junit/rules/
DExpectedException.java198 public void expectMessage(String substring) { in expectMessage() method in ExpectedException
199 expectMessage(containsString(substring)); in expectMessage()
211 public void expectMessage(Matcher<String> matcher) { in expectMessage() method in ExpectedException
/external/mockito/src/test/java/org/mockitousage/annotation/
DMockInjectionUsingConstructorTest.java142 …exception.expectMessage("Cannot instantiate @InjectMocks field named 'f'! Cause: the type 'IMethod… in injectMocksMustFailWithInterface()
156 …exception.expectMessage("Cannot instantiate @InjectMocks field named 'f'! Cause: the type 'TimeUni… in injectMocksMustFailWithEnum()
169 …exception.expectMessage("Cannot instantiate @InjectMocks field named 'f'! Cause: the type 'Abstrac… in injectMocksMustFailWithAbstractClass()
184 …exception.expectMessage("Cannot instantiate @InjectMocks field named 'f'! Cause: the type 'InnerCl… in injectMocksMustFailWithNonStaticInnerClass()
/external/deqp/modules/gles31/functional/
Des31fDebugTests.cpp131 void expectMessage (GLenum source, GLenum type);
205 ctx.expectMessage(source, type); in emitMessages()
229 ctx.expectMessage(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_PUSH_GROUP); in push_pop_messages()
231 ctx.expectMessage(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_PUSH_GROUP); in push_pop_messages()
233 ctx.expectMessage(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_PUSH_GROUP); in push_pop_messages()
235 ctx.expectMessage(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_POP_GROUP); in push_pop_messages()
237 ctx.expectMessage(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_POP_GROUP); in push_pop_messages()
240 ctx.expectMessage(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_PUSH_GROUP); in push_pop_messages()
242 ctx.expectMessage(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_POP_GROUP); in push_pop_messages()
245 ctx.expectMessage(GL_DEBUG_SOURCE_THIRD_PARTY, GL_DEBUG_TYPE_PUSH_GROUP); in push_pop_messages()
[all …]
/external/mockito/src/test/java/org/mockito/internal/progress/
DTimesTest.java23 exception.expectMessage("Negative value is not allowed here"); in shouldNotAllowNegativeNumberOfInvocations()
/external/webrtc/talk/app/webrtc/objctests/
DRTCPeerConnectionSyncObserver.h54 - (void)expectMessage:(NSData*)message isBinary:(BOOL)isBinary;
DRTCPeerConnectionTest.mm258 [answeringExpectations expectMessage:[textData copy] isBinary:NO];
269 [answeringExpectations expectMessage:[byteData copy] isBinary:YES];
DRTCPeerConnectionSyncObserver.m136 - (void)expectMessage:(NSData*)message isBinary:(BOOL)isBinary {
/external/mockito/src/test/java/org/mockito/internal/verification/
DVerificationOverTimeImplTest.java50 exception.expectMessage("message"); in should_deal_with_junit_assertion_error()
/external/mockito/src/test/java/org/mockitousage/matchers/
DVarargsTest.java104 exception.expectMessage("Argument(s) are different"); in shouldnotMatchVarArgs_twoArgsOneMatcher()
141 exception.expectMessage("Argument(s) are different"); in shouldMatchVarArgs_twoArgsThreeAnyMatcher()
/external/junit-params/src/test/java/junitparams/
DParametersReaderProvidersTest.java39 exception.expectMessage(ProviderClassWithNoValidMethods.class.getName()); in shouldPutProviderClassNameInExceptionMessageForProviderWithNoValidMethods()
/external/webrtc/talk/app/webrtc/java/testcommon/src/org/webrtc/
DPeerConnectionTest.java253 public synchronized void expectMessage(ByteBuffer expectedBuffer, in expectMessage() method in PeerConnectionTest.ObserverExpectations
686 answeringExpectations.expectMessage(
700 offeringExpectations.expectMessage(expectedBinaryMessage, true);
/external/r8/src/test/java/com/android/tools/r8/shaking/
DTreeShakingSpecificTest.java65 thrown.expectMessage("Shrinking can't be performed because some library classes are missing"); in testMissingLibrary()