Home
last modified time | relevance | path

Searched refs:inOrder (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/external/mockito/src/test/java/org/mockitousage/verification/
DSelectedMocksInOrderVerificationTest.java41 InOrder inOrder = inOrder(mockOne, mockTwo, mockThree); in shouldVerifyAllInvocationsInOrder() local
42 inOrder.verify(mockOne).simpleMethod(1); in shouldVerifyAllInvocationsInOrder()
43 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyAllInvocationsInOrder()
44 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyAllInvocationsInOrder()
45 inOrder.verify(mockTwo).simpleMethod(2); in shouldVerifyAllInvocationsInOrder()
46 inOrder.verify(mockOne).simpleMethod(4); in shouldVerifyAllInvocationsInOrder()
52 InOrder inOrder = inOrder(mockTwo, mockThree); in shouldVerifyInOrderMockTwoAndThree() local
54 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrderMockTwoAndThree()
55 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrderMockTwoAndThree()
56 inOrder.verify(mockTwo).simpleMethod(2); in shouldVerifyInOrderMockTwoAndThree()
[all …]
DBasicVerificationInOrderTest.java27 private InOrder inOrder; field in BasicVerificationInOrderTest
35 inOrder = inOrder(mockOne, mockTwo, mockThree); in setUp()
47 inOrder.verify(mockOne).simpleMethod(1); in shouldVerifyInOrder()
48 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrder()
49 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrder()
50 inOrder.verify(mockTwo).simpleMethod(2); in shouldVerifyInOrder()
51 inOrder.verify(mockOne).simpleMethod(4); in shouldVerifyInOrder()
57 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldVerifyInOrderUsingAtLeastOnce()
58 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrderUsingAtLeastOnce()
59 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrderUsingAtLeastOnce()
[all …]
DRelaxedVerificationInOrderTest.java29 private InOrder inOrder; field in RelaxedVerificationInOrderTest
37 inOrder = inOrder(mockOne, mockTwo, mockThree); in setUp()
49 inOrder.verify(mockOne).simpleMethod(1); in shouldVerifyInOrderAllInvocations()
50 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrderAllInvocations()
51 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrderAllInvocations()
52 inOrder.verify(mockTwo).simpleMethod(2); in shouldVerifyInOrderAllInvocations()
53 inOrder.verify(mockOne).simpleMethod(4); in shouldVerifyInOrderAllInvocations()
59 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldVerifyInOrderAndBeRelaxed()
60 inOrder.verify(mockThree).simpleMethod(3); in shouldVerifyInOrderAndBeRelaxed()
67 inOrder.verify(mockTwo, times(2)).simpleMethod(2); in shouldAllowFirstChunkBeforeLastInvocation()
[all …]
DFindingRedundantInvocationsInOrderTest.java18 import static org.mockito.Mockito.inOrder;
29 InOrder inOrder = inOrder(mock); in shouldWorkFineIfNoInvocations() local
32 inOrder.verifyNoMoreInteractions(); in shouldWorkFineIfNoInvocations()
41 InOrder inOrder = inOrder(mock); in shouldSayNoInteractionsWanted() local
43 inOrder.verifyNoMoreInteractions(); in shouldSayNoInteractionsWanted()
58 InOrder inOrder = inOrder(mock); in shouldVerifyNoMoreInteractionsInOrder() local
59 inOrder.verify(mock).simpleMethod(10); in shouldVerifyNoMoreInteractionsInOrder()
60 inOrder.verify(mock).otherMethod(); in shouldVerifyNoMoreInteractionsInOrder()
61 inOrder.verifyNoMoreInteractions(); in shouldVerifyNoMoreInteractionsInOrder()
72 InOrder inOrder = inOrder(mock, mock2); in shouldVerifyNoMoreInteractionsInOrderWithMultipleMocks() local
[all …]
DVerificationInOrderMixedWithOrdiraryVerificationTest.java25 private InOrder inOrder; field in VerificationInOrderMixedWithOrdiraryVerificationTest
39 inOrder = inOrder(mockOne, mockThree); in setUp()
44 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldMixVerificationInOrderAndOrdinaryVerification()
45 inOrder.verify(mockThree).simpleMethod(3); in shouldMixVerificationInOrderAndOrdinaryVerification()
46 inOrder.verify(mockThree).simpleMethod(4); in shouldMixVerificationInOrderAndOrdinaryVerification()
54 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldAllowOrdinarilyVerifyingMockPassedToInOrderObject()
70 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldAllowRedundantVerifications()
71 inOrder.verify(mockThree).simpleMethod(3); in shouldAllowRedundantVerifications()
72 inOrder.verify(mockThree).simpleMethod(4); in shouldAllowRedundantVerifications()
79 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldFailOnNoMoreInteractions()
[all …]
DDescriptiveMessagesOnVerificationInOrderErrorsTest.java26 private InOrder inOrder; field in DescriptiveMessagesOnVerificationInOrderErrorsTest
40 inOrder = inOrder(one, two, three); in setup()
45 inOrder.verify(one).simpleMethod(1); in shouldPrintVerificationInOrderErrorAndShowBothWantedAndPrevious()
46 inOrder.verify(two, atLeastOnce()).simpleMethod(2); in shouldPrintVerificationInOrderErrorAndShowBothWantedAndPrevious()
49 inOrder.verify(one, atLeastOnce()).simpleMethod(11); in shouldPrintVerificationInOrderErrorAndShowBothWantedAndPrevious()
79 inOrder.verify(one).differentMethod(); in shouldPrintVerificationInOrderErrorAndShowWantedOnly()
97 inOrder.verify(one).simpleMethod(999); in shouldPrintVerificationInOrderErrorAndShowWantedAndActual()
107 inOrder.verify(three).simpleMethod(3); in shouldNotSayArgumentsAreDifferent()
109 inOrder.verify(one).simpleMethod(999); in shouldNotSayArgumentsAreDifferent()
118 inOrder.verify(one).simpleMethod(1); in shouldPrintMethodThatWasNotInvoked()
[all …]
DVerificationInOrderTest.java25 private InOrder inOrder; field in VerificationInOrderTest
33 inOrder = inOrder(mockOne, mockTwo, mockThree); in setUp()
39 inOrder = inOrder(mockOne); in shouldVerifySingleMockInOrderAndNotInOrder()
47 inOrder.verify(mockOne).simpleMethod(2); in shouldVerifySingleMockInOrderAndNotInOrder()
49 inOrder.verify(mockOne).simpleMethod(1); in shouldVerifySingleMockInOrderAndNotInOrder()
60 inOrder.verify(mockOne, atLeastOnce()).differentMethod(); in shouldMessagesPointToProperMethod()
75 inOrder.verify(mockOne, times(2)).simpleMethod(); in shouldVerifyInOrderWhenTwoChunksAreEqual()
76 inOrder.verify(mockTwo).differentMethod(); in shouldVerifyInOrderWhenTwoChunksAreEqual()
77 inOrder.verify(mockOne, times(2)).simpleMethod(); in shouldVerifyInOrderWhenTwoChunksAreEqual()
79 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(); in shouldVerifyInOrderWhenTwoChunksAreEqual()
[all …]
DVerificationInOrderWithCallsTest.java31 InOrder verifier = inOrder( mockOne ); in shouldFailWhenMethodNotCalled()
51 InOrder verifier = inOrder( mockOne ); in shouldFailWhenMethodCalledTooFewTimes()
72 InOrder verifier = inOrder( mockOne ); in shouldFailWhenSingleMethodCallsAreOutOfSequence()
92 InOrder verifier = inOrder( mockOne ); in shouldFailWhenDifferentMethodCallsAreOutOfSequence()
112 InOrder verifier = inOrder( mockOne, mockTwo ); in shouldFailWhenMethodCallsOnDifferentMocksAreOutOfSequence()
135 InOrder verifier = inOrder( mockOne ); in shouldAllowSequentialCallsToCallsForSingleMethod()
155 InOrder verifier = inOrder( mockOne ); in shouldAllowSequentialCallsToCallsForDifferentMethods()
175 InOrder verifier = inOrder( mockOne, mockTwo ); in shouldAllowSequentialCallsToCallsForMethodsOnDifferentMocks()
198 InOrder verifier = inOrder( mockOne ); in shouldAllowFewerCallsForSingleMethod()
217 InOrder verifier = inOrder( mockOne ); in shouldNotVerifySkippedCallsWhenFewerCallsForSingleMethod()
[all …]
/external/grpc-grpc-java/testing/src/test/java/io/grpc/testing/
DGrpcCleanupRuleTest.java27 import static org.mockito.Mockito.inOrder;
96 InOrder inOrder = inOrder(statement, channel); in singleChannelCleanup() local
112 inOrder.verify(statement).evaluate(); in singleChannelCleanup()
113 inOrder.verify(channel).shutdown(); in singleChannelCleanup()
114 inOrder.verify(channel).awaitTermination(anyLong(), any(TimeUnit.class)); in singleChannelCleanup()
115 inOrder.verify(channel).shutdownNow(); in singleChannelCleanup()
123 InOrder inOrder = inOrder(statement, server); in singleServerCleanup() local
139 inOrder.verify(statement).evaluate(); in singleServerCleanup()
140 inOrder.verify(server).shutdown(); in singleServerCleanup()
141 inOrder.verify(server).awaitTermination(anyLong(), any(TimeUnit.class)); in singleServerCleanup()
[all …]
/external/guava/android/guava-tests/test/com/google/common/base/
DSplitterTest.java49 assertThat(letters).containsExactly("a", "b", "c").inOrder(); in testCharacterSimpleSplit()
62 assertThat(letters).containsExactly("a", "b", "c").inOrder(); in testCharacterSimpleSplitToList()
74 assertThat(letters).containsExactly("a,b,c").inOrder(); in testCharacterSimpleSplitWithNoDelimiter()
80 assertThat(letters).containsExactly("a", "", "b", "c").inOrder(); in testCharacterSplitWithDoubleDelimiter()
86 assertThat(letters).containsExactly("a", "", " b", "c").inOrder(); in testCharacterSplitWithDoubleDelimiterAndSpace()
92 assertThat(letters).containsExactly("a", "b", "c", "").inOrder(); in testCharacterSplitWithTrailingDelimiter()
98 assertThat(letters).containsExactly("", "a", "b", "c").inOrder(); in testCharacterSplitWithLeadingDelimiter()
106 .inOrder(); in testCharacterSplitWithMultipleLetters()
114 .inOrder(); in testCharacterSplitWithMatcherDelimiter()
120 assertThat(letters).containsExactly("a", "b", "c").inOrder(); in testCharacterSplitWithDoubleDelimiterOmitEmptyStrings()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DRetriableStreamTest.java34 import static org.mockito.Mockito.inOrder;
197 InOrder inOrder = in retry_everythingDrained() local
198 inOrder(retriableStreamRecorder, masterListener, mockStream1, mockStream2, mockStream3); in retry_everythingDrained()
211 inOrder.verifyNoMoreInteractions(); in retry_everythingDrained()
216 inOrder.verify(retriableStreamRecorder).prestart(); in retry_everythingDrained()
217 inOrder.verify(retriableStreamRecorder).newSubstream(0); in retry_everythingDrained()
219 inOrder.verify(mockStream1).setAuthority(AUTHORITY); in retry_everythingDrained()
220 inOrder.verify(mockStream1).setCompressor(COMPRESSOR); in retry_everythingDrained()
221 inOrder.verify(mockStream1).setDecompressorRegistry(DECOMPRESSOR_REGISTRY); in retry_everythingDrained()
222 inOrder.verify(mockStream1).setFullStreamDecompression(false); in retry_everythingDrained()
[all …]
DChannelExecutorTest.java23 import static org.mockito.Mockito.inOrder;
75 InOrder inOrder = inOrder(task1, task2, task3); in singleThread() local
76 inOrder.verifyNoMoreInteractions(); in singleThread()
78 inOrder.verify(task1).run(); in singleThread()
79 inOrder.verify(task2).run(); in singleThread()
82 inOrder.verifyNoMoreInteractions(); in singleThread()
84 inOrder.verify(task3).run(); in singleThread()
89 InOrder inOrder = inOrder(task1, task2); in multiThread() local
137 inOrder.verify(task1).run(); in multiThread()
138 inOrder.verifyNoMoreInteractions(); in multiThread()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DSplitterTest.java50 assertThat(letters).containsExactly("a", "b", "c").inOrder(); in testCharacterSimpleSplit()
63 assertThat(letters).containsExactly("a", "b", "c").inOrder(); in testCharacterSimpleSplitToList()
69 assertThat(letters).containsExactly("a", "b", "c").inOrder(); in testCharacterSimpleSplitToStream()
81 assertThat(letters).containsExactly("a,b,c").inOrder(); in testCharacterSimpleSplitWithNoDelimiter()
87 assertThat(letters).containsExactly("a", "", "b", "c").inOrder(); in testCharacterSplitWithDoubleDelimiter()
93 assertThat(letters).containsExactly("a", "", " b", "c").inOrder(); in testCharacterSplitWithDoubleDelimiterAndSpace()
99 assertThat(letters).containsExactly("a", "b", "c", "").inOrder(); in testCharacterSplitWithTrailingDelimiter()
105 assertThat(letters).containsExactly("", "a", "b", "c").inOrder(); in testCharacterSplitWithLeadingDelimiter()
113 .inOrder(); in testCharacterSplitWithMultipleLetters()
121 .inOrder(); in testCharacterSplitWithMatcherDelimiter()
[all …]
/external/mockito/src/test/java/org/mockitousage/stacktrace/
DPointingStackTraceToActualInvocationInOrderTest.java28 private InOrder inOrder; field in PointingStackTraceToActualInvocationInOrderTest
32 inOrder = inOrder(mock, mockTwo); in setup()
55 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointStackTraceToPreviousVerified()
56 inOrder.verify(mockTwo).simpleMethod(anyInt()); in shouldPointStackTraceToPreviousVerified()
59 inOrder.verify(mock).simpleMethod(999); in shouldPointStackTraceToPreviousVerified()
68 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToThirdMethod()
71 inOrder.verify(mockTwo).simpleMethod(999); in shouldPointToThirdMethod()
80 inOrder.verify(mock).simpleMethod(anyInt()); in shouldPointToSecondMethod()
81 inOrder.verify(mockTwo).simpleMethod(anyInt()); in shouldPointToSecondMethod()
84 inOrder.verify(mockTwo, times(3)).simpleMethod(999); in shouldPointToSecondMethod()
[all …]
DPointingStackTraceToActualInvocationChunkInOrderTest.java27 private InOrder inOrder; field in PointingStackTraceToActualInvocationChunkInOrderTest
31 inOrder = inOrder(mock, mockTwo); in setup()
58 inOrder.verify(mock, times(2)).simpleMethod(anyInt()); in shouldPointStackTraceToPreviousInvocation()
59 inOrder.verify(mockTwo, times(2)).simpleMethod(anyInt()); in shouldPointStackTraceToPreviousInvocation()
62 inOrder.verify(mock).simpleMethod(999); in shouldPointStackTraceToPreviousInvocation()
71 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToThirdInteractionBecauseAtLeastOnceUsed()
74 inOrder.verify(mockTwo).simpleMethod(999); in shouldPointToThirdInteractionBecauseAtLeastOnceUsed()
83 inOrder.verify(mock, times(2)).simpleMethod(anyInt()); in shouldPointToThirdChunkWhenTooLittleActualInvocations()
84 inOrder.verify(mockTwo, times(2)).simpleMethod(anyInt()); in shouldPointToThirdChunkWhenTooLittleActualInvocations()
85 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToThirdChunkWhenTooLittleActualInvocations()
[all …]
DModellingDescriptiveMessagesTest.java78 InOrder inOrder = inOrder(mock); in shouldSayWantedButNotInvokedInOrder() local
79 inOrder.verify(mock).otherMethod(); in shouldSayWantedButNotInvokedInOrder()
80 inOrder.verify(mock).simpleMethod(); in shouldSayWantedButNotInvokedInOrder()
89 InOrder inOrder = inOrder(mock); in shouldSayTooLittleInvocationsInOrder() local
90 inOrder.verify(mock).simpleMethod(); in shouldSayTooLittleInvocationsInOrder()
91 inOrder.verify(mock, times(3)).otherMethod(); in shouldSayTooLittleInvocationsInOrder()
99 InOrder inOrder = inOrder(mock); in shouldSayTooManyInvocationsInOrder() local
100 inOrder.verify(mock, times(1)).otherMethod(); in shouldSayTooManyInvocationsInOrder()
114 InOrder inOrder = inOrder(mock); in shouldSayTooLittleInvocationsInAtLeastModeInOrder() local
115 inOrder.verify(mock, atLeast(2)).simpleMethod(); in shouldSayTooLittleInvocationsInAtLeastModeInOrder()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DBidiTransform.java222 byte inParaLevel, Order inOrder, in transform() argument
226 if (text == null || inOrder == null || outOrder == null || doMirroring == null) { in transform()
234 ReorderingScheme currentScheme = findMatchingScheme(levels[0], inOrder, in transform()
280 private ReorderingScheme findMatchingScheme(byte inLevel, Order inOrder, in findMatchingScheme() argument
283 if (scheme.matches(inLevel, inOrder, outLevel, outOrder)) { in findMatchingScheme()
380 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { in matches() argument
381 return IsLTR(inLevel) && IsLogical(inOrder) in matches()
393 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { in matches() argument
394 return IsRTL(inLevel) && IsLogical(inOrder) in matches()
406 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { in matches() argument
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DBidiTransform.java212 byte inParaLevel, Order inOrder, in transform() argument
216 if (text == null || inOrder == null || outOrder == null || doMirroring == null) { in transform()
224 ReorderingScheme currentScheme = findMatchingScheme(levels[0], inOrder, in transform()
270 private ReorderingScheme findMatchingScheme(byte inLevel, Order inOrder, in findMatchingScheme() argument
273 if (scheme.matches(inLevel, inOrder, outLevel, outOrder)) { in findMatchingScheme()
370 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { in matches() argument
371 return IsLTR(inLevel) && IsLogical(inOrder) in matches()
383 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { in matches() argument
384 return IsRTL(inLevel) && IsLogical(inOrder) in matches()
396 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { in matches() argument
[all …]
/external/dagger2/javatests/dagger/functional/producers/monitoring/
DMonitoringTest.java22 import static org.mockito.Mockito.inOrder;
88 InOrder inOrder = inOrder(requestDataMonitor, callServer1Monitor, callServer2Monitor); in basicMonitoring() local
89 inOrder.verify(callServer2Monitor).requested(); in basicMonitoring()
90 inOrder.verify(callServer1Monitor).requested(); in basicMonitoring()
91 inOrder.verify(requestDataMonitor).requested(); in basicMonitoring()
92 inOrder.verify(requestDataMonitor).ready(); in basicMonitoring()
93 inOrder.verify(requestDataMonitor).methodStarting(); in basicMonitoring()
94 inOrder.verify(requestDataMonitor).methodFinished(); in basicMonitoring()
95 inOrder.verify(requestDataMonitor).succeeded("Hello, World!"); in basicMonitoring()
96 inOrder.verify(callServer1Monitor).ready(); in basicMonitoring()
[all …]
/external/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/
DGrpclbLoadBalancerTest.java38 import static org.mockito.Mockito.inOrder;
409 InOrder inOrder = inOrder(lbRequestObserver); in loadReporting() local
410 InOrder helperInOrder = inOrder(helper, subchannelPool); in loadReporting()
412 inOrder.verify(lbRequestObserver).onNext( in loadReporting()
448 new DropEntry(getLoadRecorder(), "token0003")).inOrder(); in loadReporting()
451 new BackendEntry(subchannel2, getLoadRecorder(), "token0002")).inOrder(); in loadReporting()
455 inOrder, lbRequestObserver, loadReportIntervalMillis, in loadReporting()
464 inOrder, lbRequestObserver, loadReportIntervalMillis, in loadReporting()
476 inOrder, lbRequestObserver, loadReportIntervalMillis, in loadReporting()
498 inOrder, lbRequestObserver, loadReportIntervalMillis, in loadReporting()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DImmutableTableTest.java166 assertThat(copy.cellSet()).containsExactlyElementsIn(original.cellSet()).inOrder(); in validateViewOrdering()
167 assertThat(copy.rowKeySet()).containsExactlyElementsIn(original.rowKeySet()).inOrder(); in validateViewOrdering()
168 assertThat(copy.values()).containsExactlyElementsIn(original.values()).inOrder(); in validateViewOrdering()
181 assertThat(table.row('b').keySet()).containsExactly(1, 2).inOrder(); in testCopyOf()
182 assertThat(ImmutableTable.copyOf(table).row('b').keySet()).containsExactly(2, 1).inOrder(); in testCopyOf()
224 assertThat(copy.rowKeySet()).containsExactly('a', 'b').inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll()
225 assertThat(copy.columnKeySet()).containsExactly(1, 2).inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll()
226 assertThat(copy.values()).containsExactly("baz", "bar", "foo").inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll()
227 assertThat(copy.row('b').keySet()).containsExactly(1, 2).inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll()
244 assertThat(table.rowKeySet()).containsExactly('b', 'c', 'e', 'r', 'x').inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse()
[all …]
/external/mockito/src/test/java/org/mockitousage/bugs/
DMultipleInOrdersTest.java13 import static org.mockito.Mockito.inOrder;
28 InOrder inOrder = inOrder(list); in inOrderTest() local
29 InOrder inAnotherOrder = inOrder(list); in inOrderTest()
30 assertNotSame(inOrder, inAnotherOrder); in inOrderTest()
32 inOrder.verify(list).add("a"); in inOrderTest()
33 inOrder.verify(list).add("b"); in inOrderTest()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DPickFirstLoadBalancerTest.java28 import static org.mockito.Mockito.inOrder;
139 InOrder inOrder = inOrder(mockHelper); in pickAfterResolvedAndChanged() local
142 inOrder.verify(mockHelper).createSubchannel(eq(servers), any(Attributes.class)); in pickAfterResolvedAndChanged()
143 inOrder.verify(mockHelper).updateBalancingState(eq(CONNECTING), pickerCaptor.capture()); in pickAfterResolvedAndChanged()
148 inOrder.verify(mockHelper).updateSubchannelAddresses(eq(mockSubchannel), eq(newServers)); in pickAfterResolvedAndChanged()
168 InOrder inOrder = inOrder(mockHelper); in pickAfterStateChangeAfterResolution() local
173 inOrder.verify(mockHelper).updateBalancingState(eq(TRANSIENT_FAILURE), pickerCaptor.capture()); in pickAfterStateChangeAfterResolution()
177 inOrder.verify(mockHelper).updateBalancingState(eq(IDLE), pickerCaptor.capture()); in pickAfterStateChangeAfterResolution()
181 inOrder.verify(mockHelper).updateBalancingState(eq(READY), pickerCaptor.capture()); in pickAfterStateChangeAfterResolution()
201 InOrder inOrder = inOrder(mockHelper); in nameResolutionSuccessAfterError() local
[all …]
/external/mockito/src/test/java/org/mockitousage/customization/
DBDDMockitoTest.java300 InOrder inOrder = inOrder(mock); in should_pass_for_interactions_that_happened_in_correct_order() local
301 then(mock).should(inOrder).booleanObjectReturningMethod(); in should_pass_for_interactions_that_happened_in_correct_order()
302 then(mock).should(inOrder).arrayReturningMethod(); in should_pass_for_interactions_that_happened_in_correct_order()
307 InOrder inOrder = inOrder(mock); in should_fail_for_interactions_that_were_in_wrong_order() local
312 then(mock).should(inOrder).booleanObjectReturningMethod(); in should_fail_for_interactions_that_were_in_wrong_order()
314 then(mock).should(inOrder).arrayReturningMethod(); in should_fail_for_interactions_that_were_in_wrong_order()
322 then(mock).should(inOrder(mock)).booleanObjectReturningMethod(); in should_fail_when_checking_order_of_interactions_that_did_not_happen()
348 InOrder inOrder = inOrder(person); in should_pass_fluent_bdd_scenario_with_ordered_verification() local
349 then(person).should(inOrder).drive(car); in should_pass_fluent_bdd_scenario_with_ordered_verification()
350 then(person).should(inOrder, times(2)).ride(bike); in should_pass_fluent_bdd_scenario_with_ordered_verification()
[all …]
/external/lottie/lottie/src/test/java/com/airbnb/lottie/
DLottieValueAnimatorUnitTest.java24 import static org.mockito.Mockito.inOrder;
29 void verify(InOrder inOrder); in verify() argument
35 private InOrder inOrder; field in LottieValueAnimatorUnitTest
187 @Override public void verify(InOrder inOrder) {
188 inOrder.verify(spyListener, times(1)).onAnimationStart(animator, false);
189 inOrder.verify(spyListener, times(1)).onAnimationEnd(animator, false);
200 @Override public void verify(InOrder inOrder) {
201 inOrder.verify(spyListener, times(1)).onAnimationStart(animator, true);
202 inOrder.verify(spyListener, times(1)).onAnimationEnd(animator, true);
213 @Override public void verify(InOrder inOrder) {
[all …]

12345678910>>...13