Move mockito to 3.0.0-alpha. (#15949)
* Move mockito to 3.0.0-alpha. This is needed so it matches mockito version used internally. * Pick up +2 for the fixes * Fix whenReturn in fuchsia_remote_debug_protocol * more thenReturn becomes thenAnswer * more thenReturn becomes thenAnswer * more thenReturn becomes thenAnswer
This commit is contained in:
committed by
GitHub
parent
067be92ae8
commit
a7e6225820
@@ -21,7 +21,7 @@ dependencies:
|
||||
|
||||
dev_dependencies:
|
||||
test: 0.12.32+2
|
||||
mockito: 2.2.3
|
||||
mockito: 3.0.0-alpha+2
|
||||
|
||||
barback: 0.15.2+15 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
boolean_selector: 1.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
|
||||
@@ -13,7 +13,7 @@ dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
||||
mockito: 2.2.3
|
||||
mockito: 3.0.0-alpha+2
|
||||
|
||||
args: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
async: 2.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
|
||||
@@ -11,9 +11,9 @@ MockHttpClient createMockImageHttpClient(SecurityContext _) {
|
||||
final MockHttpClientRequest request = new MockHttpClientRequest();
|
||||
final MockHttpClientResponse response = new MockHttpClientResponse();
|
||||
final MockHttpHeaders headers = new MockHttpHeaders();
|
||||
when(client.getUrl(typed(any))).thenReturn(new Future<HttpClientRequest>.value(request));
|
||||
when(client.getUrl(typed(any))).thenAnswer((_) => new Future<HttpClientRequest>.value(request));
|
||||
when(request.headers).thenReturn(headers);
|
||||
when(request.close()).thenReturn(new Future<HttpClientResponse>.value(response));
|
||||
when(request.close()).thenAnswer((_) => new Future<HttpClientResponse>.value(response));
|
||||
when(response.contentLength).thenReturn(kTransparentImage.length);
|
||||
when(response.statusCode).thenReturn(HttpStatus.OK);
|
||||
when(response.listen(typed(any))).thenAnswer((Invocation invocation) {
|
||||
|
||||
@@ -24,7 +24,7 @@ dependencies:
|
||||
|
||||
dev_dependencies:
|
||||
test: 0.12.32+2
|
||||
mockito: 2.2.3
|
||||
mockito: 3.0.0-alpha+2
|
||||
|
||||
barback: 0.15.2+15 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
boolean_selector: 1.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
|
||||
Reference in New Issue
Block a user