forked from firka/flutter
Again move mockito to 300plus2 (#15981)
* Revert "Revert "Move mockito to 3.0.0-alpha. (#15949)" (#15979)"
This reverts commit e59651f925.
* More thenReturn to thenAnswer when mocking Futures
* Revert "More thenReturn to thenAnswer when mocking Futures"
This reverts commit 194d2cf41754ad171efd6bb5898cf73bce5a75ab as we are reverting engine roll.
* Revert "Revert "More thenReturn to thenAnswer when mocking Futures""
This reverts commit 52c9e96b304b220f66d78a252fccea0c8e0ef24c.
* Add dependency override
* Fix issue
This commit is contained in:
committed by
GitHub
parent
31049a5a73
commit
bffae21571
@@ -66,7 +66,7 @@ dependencies:
|
||||
|
||||
dev_dependencies:
|
||||
test: 0.12.32+2
|
||||
mockito: 2.2.3
|
||||
mockito: 3.0.0-alpha+2
|
||||
quiver: 0.28.0
|
||||
|
||||
# PUBSPEC CHECKSUM: 74e9
|
||||
|
||||
@@ -37,9 +37,9 @@ void main() {
|
||||
mockVM = new MockVM();
|
||||
mockIsolate = new MockIsolate();
|
||||
mockPeer = new MockPeer();
|
||||
when(mockClient.getVM()).thenReturn(new Future<MockVM>.value(mockVM));
|
||||
when(mockClient.getVM()).thenAnswer((_) => new Future<MockVM>.value(mockVM));
|
||||
when(mockVM.isolates).thenReturn(<VMRunnableIsolate>[mockIsolate]);
|
||||
when(mockIsolate.loadRunnable()).thenReturn(new Future<MockIsolate>.value(mockIsolate));
|
||||
when(mockIsolate.loadRunnable()).thenAnswer((_) => new Future<MockIsolate>.value(mockIsolate));
|
||||
when(mockIsolate.invokeExtension(typed(any), typed(any))).thenAnswer(
|
||||
(Invocation invocation) => makeMockResponse(<String, dynamic>{'status': 'ok'}));
|
||||
vmServiceConnectFunction = (String url) {
|
||||
|
||||
Reference in New Issue
Block a user