/external/mockito/src/org/mockito/internal/verification/ |
InOrderWrapper.java | 20 private final InOrderImpl inOrder;
22 public InOrderWrapper(VerificationInOrderMode mode, InOrderImpl inOrder) {
24 this.inOrder = inOrder;
28 List<Invocation> invocations = new VerifiableInvocationsFinder().find(inOrder.getMocksToBeVerifiedInOrder());
29 VerificationDataInOrderImpl dataInOrder = new VerificationDataInOrderImpl(inOrder, invocations, data.getWanted());
|
/external/dagger2/core/src/test/java/dagger/internal/ |
SetFactoryTest.java | 112 assert_().that(factory.get()).containsExactly(5, 6, 7, 8, 9, 3, 4, 0, 1, 2).inOrder();
|
/external/guava/guava-tests/test/com/google/common/collect/ |
NewCustomTableTest.java | 54 assertThat(table.rowKeySet()).has().exactly("foo", "bar").inOrder(); 59 assertThat(table.row("foo").keySet()).has().exactly(2, 3).inOrder();
|
ArrayListMultimapTest.java | 122 assertThat(multimap.get("foo")).has().exactly(1, 2, 3, 4, 5).inOrder(); 124 assertThat(sublist).has().exactly(1, 2, 3, 4, 5).inOrder(); 193 assertThat(multimap.get("foo")).has().exactly(1, 2).inOrder();
|
ImmutableSetTest.java | 156 assertThat(set).has().exactly("a", "b", "c").inOrder();
|
/external/mockito/src/org/mockito/internal/verification/api/ |
VerificationDataInOrderImpl.java | 14 private final InOrderContext inOrder;
18 public VerificationDataInOrderImpl(InOrderContext inOrder, List<Invocation> allInvocations, InvocationMatcher wanted) {
19 this.inOrder = inOrder;
29 return inOrder;
|
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/ |
MultibindingTest.java | 56 assertThat(map.get("foo")).asList().containsExactly("foo1", "foo2").inOrder(); 58 assertThat(map.get("bar")).asList().containsExactly("bar1", "bar2").inOrder();
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
ImmutableSetTest.java | 106 assertThat(set).has().exactly("a", "b", "c").inOrder();
|
ArrayListMultimapTest.java | 85 assertThat(multimap.get("foo")).has().exactly(1, 2, 3, 4, 5).inOrder(); 87 assertThat(sublist).has().exactly(1, 2, 3, 4, 5).inOrder(); 156 assertThat(multimap.get("foo")).has().exactly(1, 2).inOrder();
|
TreeMultisetTest.java | 86 assertThat(elementSet.headSet("b")).has().exactly("a").inOrder(); 87 assertThat(elementSet.tailSet("b")).has().exactly("b", "c").inOrder(); 88 assertThat(elementSet.subSet("a", "c")).has().exactly("a", "b").inOrder(); 101 assertThat(elementSet).has().exactly("a", "b", "c", "d", "e", "f").inOrder(); 103 assertThat(subset).has().exactly("b", "c", "d", "e").inOrder(); 106 assertThat(elementSet).has().exactly("a", "b", "d", "e", "f").inOrder(); 107 assertThat(subset).has().exactly("b", "d", "e").inOrder(); 111 assertThat(elementSet).has().exactly("a", "b", "d", "e", "f").inOrder(); 112 assertThat(subset).has().exactly("b", "d", "e").inOrder(); 126 assertThat(elementSet).has().exactly("a", "b", "c", "d", "e", "f").inOrder(); [all...] |
ContiguousSetTest.java | 112 assertThat(set.headSet(3)).has().exactly(1, 2).inOrder(); 113 assertThat(set.headSet(4)).has().exactly(1, 2, 3).inOrder(); 114 assertThat(set.headSet(Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder(); 116 assertThat(set.headSet(2, true)).has().exactly(1, 2).inOrder(); 117 assertThat(set.headSet(3, true)).has().exactly(1, 2, 3).inOrder(); 118 assertThat(set.headSet(4, true)).has().exactly(1, 2, 3).inOrder(); 119 assertThat(set.headSet(Integer.MAX_VALUE, true)).has().exactly(1, 2, 3).inOrder(); 128 assertThat(set.tailSet(Integer.MIN_VALUE)).has().exactly(1, 2, 3).inOrder(); 129 assertThat(set.tailSet(1)).has().exactly(1, 2, 3).inOrder(); 130 assertThat(set.tailSet(2)).has().exactly(2, 3).inOrder(); [all...] |
ImmutableTableTest.java | 187 assertThat(table.row('b').keySet()).has().exactly(1, 2).inOrder(); 189 .has().exactly(2, 1).inOrder(); 230 assertThat(copy.rowKeySet()).has().exactly('a', 'b').inOrder(); 231 assertThat(copy.columnKeySet()).has().exactly(1, 2).inOrder(); 232 assertThat(copy.values()).has().exactly("baz", "bar", "foo").inOrder(); 233 assertThat(copy.row('b').keySet()).has().exactly(1, 2).inOrder(); 251 assertThat(table.rowKeySet()).has().exactly('b', 'c', 'e', 'r', 'x').inOrder(); 252 assertThat(table.columnKeySet()).has().exactly(0, 1, 2, 3, 4, 5, 7).inOrder(); 254 "dog", "bar", "foo", "foo", "bar").inOrder(); 255 assertThat(table.row('c').keySet()).has().exactly(0, 3).inOrder(); [all...] |
LinkedHashMultimapTest.java | 91 assertThat(multimap.get("foo")).has().exactly(5, 3).inOrder(); 92 assertThat(multimap.get("bar")).has().exactly(4, 1).inOrder(); 95 assertThat(multimap.keySet()).has().exactly("foo", "bar", "cow").inOrder(); 96 assertThat(multimap.values()).has().exactly(5, 4, 3, 2, 1).inOrder(); 110 assertThat(entry.getValue()).has().exactly(5, 3).inOrder(); 113 assertThat(entry.getValue()).has().exactly(4, 1).inOrder(); 122 assertThat(multimap.replaceValues("foo", asList(6, 7))).has().exactly(5, 3).inOrder(); 123 assertThat(multimap.keySet()).has().exactly("foo", "bar", "cow").inOrder(); 124 assertThat(multimap.removeAll("foo")).has().exactly(6, 7).inOrder(); 125 assertThat(multimap.keySet()).has().exactly("bar", "cow").inOrder(); [all...] |
LinkedListMultimapTest.java | 92 assertThat(copy.entries()).has().exactlyAs(multimap.entries()).inOrder(); 186 assertThat(values).has().exactly(1, 2, 3).inOrder(); 213 assertThat(map.keys()).has().exactly("bar", "foo", "bar", "bar").inOrder(); 259 assertThat(entry.getValue()).has().exactly(1, 3).inOrder();
|
ObjectArraysTest.java | 107 assertThat(result).asList().has().exactly("foo", "bar").inOrder(); 112 assertThat(result).asList().has().exactly("foo", "bar", "baz").inOrder(); 122 assertThat(result).asList().has().exactly("foo", "bar").inOrder(); 127 assertThat(result).asList().has().exactly("foo", "bar", "baz").inOrder();
|
TreeMultimapExplicitTest.java | 100 assertThat(tree.keySet()).has().exactly("tree", "google").inOrder(); 101 assertThat(tree.get("google")).has().exactly(6, 2).inOrder(); 105 assertThat(copy.keySet()).has().exactly("google", "tree").inOrder(); 106 assertThat(copy.get("google")).has().exactly(2, 6).inOrder(); 131 assertThat(multimap.get(null)).has().exactly(7, 3, 1).inOrder(); 132 assertThat(multimap.get("google")).has().exactly(6, 2).inOrder(); 133 assertThat(multimap.get("tree")).has().exactly(null, 0).inOrder(); 138 assertThat(multimap.keySet()).has().exactly(null, "tree", "google").inOrder(); 165 Maps.immutableEntry("google", 2)).inOrder(); 170 assertThat(multimap.values()).has().exactly(7, 3, 1, null, 0, 6, 2).inOrder(); [all...] |
TreeMultimapNaturalTest.java | 71 assertThat(multimap.get("foo")).has().exactly(1, 3, 7).inOrder(); 72 assertThat(multimap.get("google")).has().exactly(2, 6).inOrder(); 73 assertThat(multimap.get("tree")).has().exactly(0, 4).inOrder(); 78 assertThat(multimap.keySet()).has().exactly("foo", "google", "tree").inOrder(); 105 Maps.immutableEntry("tree", 4)).inOrder(); 111 1, 3, 7, 2, 6, 0, 4).inOrder();
|
/cts/tests/tests/print/src/android/print/cts/ |
PageRangeAdjustmentTest.java | 20 import static org.mockito.Mockito.inOrder; 48 import org.mockito.InOrder; 161 InOrder inOrder = inOrder(firstServiceCallbacks); 164 inOrder.verify(firstServiceCallbacks) 168 inOrder.verify(firstServiceCallbacks).onPrintJobQueued( 276 InOrder inOrder = inOrder(firstServiceCallbacks) [all...] |
PrinterDiscoverySessionLifecycleTest.java | 19 import static org.mockito.Mockito.inOrder; 42 import org.mockito.InOrder; 132 InOrder inOrder = inOrder(firstSessionCallbacks); 136 inOrder.verify(firstSessionCallbacks).onStartPrinterDiscovery( 140 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( 144 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( 148 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( 152 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking [all...] |
PrintDocumentAdapterContractTest.java | 21 import static org.mockito.Mockito.inOrder; 47 import org.mockito.InOrder; 135 InOrder inOrder = inOrder(adapter); 138 inOrder.verify(adapter).onStart(); 150 verifyLayoutCall(inOrder, adapter, firstOldAttributes, firstNewAttributes, true); 154 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), 169 verifyLayoutCall(inOrder, adapter, secondOldAttributes, secondNewAttributes, true); 172 verifyLayoutCall(inOrder, adapter, secondNewAttributes, secondNewAttributes, false) [all...] |
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/monitoring/ |
MonitoringTest.java | 33 import org.mockito.InOrder; 40 import static org.mockito.Mockito.inOrder; 86 InOrder inOrder = inOrder(requestDataMonitor, callServer1Monitor, callServer2Monitor); 87 inOrder.verify(requestDataMonitor).methodStarting(); 88 inOrder.verify(requestDataMonitor).methodFinished(); 89 inOrder.verify(requestDataMonitor).succeeded("Hello, World!"); 90 inOrder.verify(callServer1Monitor).methodStarting(); 91 inOrder.verify(callServer1Monitor).methodFinished() [all...] |
/external/mockito/src/org/mockito/ |
Mockito.java | 264 * //create an inOrder verifier for a single mock
265 * InOrder inOrder = inOrder(singleMock);
268 * inOrder.verify(singleMock).add("was added first");
269 * inOrder.verify(singleMock).add("was added second");
279 * //create inOrder object passing any mocks that need to be verified in order
280 * InOrder inOrder = inOrder(firstMock, secondMock); [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
RequestFocusTest.java | 19 import static com.google.testing.littlemock.LittleMock.inOrder; 34 import com.google.testing.littlemock.LittleMock.InOrder; 142 InOrder inOrder = inOrder(mock); 143 inOrder.verify(mock).onFocusChange(clearingFocusButton, false); 144 inOrder.verify(mock).onGlobalFocusChanged(clearingFocusButton, gainingFocusButton); 145 inOrder.verify(mock).onFocusChange(gainingFocusButton, true); 185 InOrder inOrder = inOrder(mock) [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
DrawerLayoutTest.java | 34 import org.mockito.InOrder; 297 InOrder inOrder = inOrder(mockedListener); 298 inOrder.verify(mockedListener).onDrawerStateChanged(DrawerLayout.STATE_SETTLING); 299 inOrder.verify(mockedListener).onDrawerStateChanged(DrawerLayout.STATE_IDLE); 366 InOrder inOrder = inOrder(mockedListener); 367 inOrder.verify(mockedListener).onDrawerStateChanged(DrawerLayout.STATE_SETTLING) [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
CameraManagerTest.java | 25 import org.mockito.InOrder; 122 InOrder inOrder = Mockito.inOrder(wrapper); 123 inOrder.verify(wrapper).open(1); 124 inOrder.verify(wrapper).release(backCamera); 125 inOrder.verify(wrapper).open(0);
|