fix test
This commit is contained in:
@@ -3,32 +3,29 @@
|
||||
// Do not manually edit this file.
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i10;
|
||||
import 'dart:convert' as _i21;
|
||||
import 'dart:typed_data' as _i22;
|
||||
import 'dart:ui' as _i8;
|
||||
import 'dart:async' as _i7;
|
||||
import 'dart:convert' as _i18;
|
||||
import 'dart:typed_data' as _i19;
|
||||
import 'dart:ui' as _i5;
|
||||
|
||||
import 'package:fotodocumentation/controller/base_controller.dart' as _i4;
|
||||
import 'package:fotodocumentation/controller/foto_customer_controller.dart'
|
||||
as _i12;
|
||||
import 'package:fotodocumentation/controller/login_controller.dart' as _i9;
|
||||
import 'package:fotodocumentation/controller/picture_controller.dart' as _i14;
|
||||
as _i9;
|
||||
import 'package:fotodocumentation/controller/login_controller.dart' as _i6;
|
||||
import 'package:fotodocumentation/controller/picture_controller.dart' as _i11;
|
||||
import 'package:fotodocumentation/controller/questionnaire_controller.dart'
|
||||
as _i17;
|
||||
as _i14;
|
||||
import 'package:fotodocumentation/controller/questionnaire_customer_controller.dart'
|
||||
as _i19;
|
||||
import 'package:fotodocumentation/dto/customer_dto.dart' as _i13;
|
||||
import 'package:fotodocumentation/dto/jwt_token_pair_dto.dart' as _i11;
|
||||
import 'package:fotodocumentation/dto/picture_dto.dart' as _i15;
|
||||
import 'package:fotodocumentation/dto/questionnaire_customer_dto.dart' as _i20;
|
||||
import 'package:fotodocumentation/dto/questionnaire_dto.dart' as _i18;
|
||||
import 'package:fotodocumentation/utils/http_client_utils.dart' as _i3;
|
||||
import 'package:fotodocumentation/utils/jwt_token_storage.dart' as _i16;
|
||||
import 'package:fotodocumentation/utils/login_credentials.dart' as _i6;
|
||||
import 'package:fotodocumentation/utils/url_utils.dart' as _i2;
|
||||
import 'package:http/http.dart' as _i5;
|
||||
as _i16;
|
||||
import 'package:fotodocumentation/dto/customer_dto.dart' as _i10;
|
||||
import 'package:fotodocumentation/dto/jwt_token_pair_dto.dart' as _i8;
|
||||
import 'package:fotodocumentation/dto/picture_dto.dart' as _i12;
|
||||
import 'package:fotodocumentation/dto/questionnaire_customer_dto.dart' as _i17;
|
||||
import 'package:fotodocumentation/dto/questionnaire_dto.dart' as _i15;
|
||||
import 'package:fotodocumentation/utils/jwt_token_storage.dart' as _i13;
|
||||
import 'package:fotodocumentation/utils/login_credentials.dart' as _i3;
|
||||
import 'package:http/http.dart' as _i2;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:mockito/src/dummies.dart' as _i7;
|
||||
import 'package:mockito/src/dummies.dart' as _i4;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
@@ -45,8 +42,8 @@ import 'package:mockito/src/dummies.dart' as _i7;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeUrlUtils_0 extends _i1.SmartFake implements _i2.UrlUtils {
|
||||
_FakeUrlUtils_0(
|
||||
class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
|
||||
_FakeResponse_0(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
@@ -55,50 +52,9 @@ class _FakeUrlUtils_0 extends _i1.SmartFake implements _i2.UrlUtils {
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeHttpClientUtils_1 extends _i1.SmartFake
|
||||
implements _i3.HttpClientUtils {
|
||||
_FakeHttpClientUtils_1(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeHeader_2 extends _i1.SmartFake implements _i4.Header {
|
||||
_FakeHeader_2(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeException_3 extends _i1.SmartFake implements Exception {
|
||||
_FakeException_3(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeResponse_4 extends _i1.SmartFake implements _i5.Response {
|
||||
_FakeResponse_4(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeStreamedResponse_5 extends _i1.SmartFake
|
||||
implements _i5.StreamedResponse {
|
||||
_FakeStreamedResponse_5(
|
||||
class _FakeStreamedResponse_1 extends _i1.SmartFake
|
||||
implements _i2.StreamedResponse {
|
||||
_FakeStreamedResponse_1(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
@@ -110,7 +66,7 @@ class _FakeStreamedResponse_5 extends _i1.SmartFake
|
||||
/// A class which mocks [LoginCredentials].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockLoginCredentials extends _i1.Mock implements _i6.LoginCredentials {
|
||||
class MockLoginCredentials extends _i1.Mock implements _i3.LoginCredentials {
|
||||
MockLoginCredentials() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
@@ -118,7 +74,7 @@ class MockLoginCredentials extends _i1.Mock implements _i6.LoginCredentials {
|
||||
@override
|
||||
String get fullname => (super.noSuchMethod(
|
||||
Invocation.getter(#fullname),
|
||||
returnValue: _i7.dummyValue<String>(
|
||||
returnValue: _i4.dummyValue<String>(
|
||||
this,
|
||||
Invocation.getter(#fullname),
|
||||
),
|
||||
@@ -155,7 +111,7 @@ class MockLoginCredentials extends _i1.Mock implements _i6.LoginCredentials {
|
||||
);
|
||||
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
@@ -164,7 +120,7 @@ class MockLoginCredentials extends _i1.Mock implements _i6.LoginCredentials {
|
||||
);
|
||||
|
||||
@override
|
||||
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
@@ -194,13 +150,13 @@ class MockLoginCredentials extends _i1.Mock implements _i6.LoginCredentials {
|
||||
/// A class which mocks [LoginController].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockLoginController extends _i1.Mock implements _i9.LoginController {
|
||||
class MockLoginController extends _i1.Mock implements _i6.LoginController {
|
||||
MockLoginController() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i10.Future<({_i11.JwtTokenPairDto? jwtTokenPairDto})> authenticate(
|
||||
_i7.Future<({_i8.JwtTokenPairDto? jwtTokenPairDto})> authenticate(
|
||||
String? username,
|
||||
String? password,
|
||||
) =>
|
||||
@@ -212,19 +168,18 @@ class MockLoginController extends _i1.Mock implements _i9.LoginController {
|
||||
password,
|
||||
],
|
||||
),
|
||||
returnValue:
|
||||
_i10.Future<({_i11.JwtTokenPairDto? jwtTokenPairDto})>.value(
|
||||
(jwtTokenPairDto: null)),
|
||||
) as _i10.Future<({_i11.JwtTokenPairDto? jwtTokenPairDto})>);
|
||||
returnValue: _i7.Future<({_i8.JwtTokenPairDto? jwtTokenPairDto})>.value(
|
||||
(jwtTokenPairDto: null)),
|
||||
) as _i7.Future<({_i8.JwtTokenPairDto? jwtTokenPairDto})>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> refreshAccessToken() => (super.noSuchMethod(
|
||||
_i7.Future<bool> refreshAccessToken() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#refreshAccessToken,
|
||||
[],
|
||||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
returnValue: _i7.Future<bool>.value(false),
|
||||
) as _i7.Future<bool>);
|
||||
|
||||
@override
|
||||
bool isUsingJwtAuth() => (super.noSuchMethod(
|
||||
@@ -240,13 +195,13 @@ class MockLoginController extends _i1.Mock implements _i9.LoginController {
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockFotoCustomerController extends _i1.Mock
|
||||
implements _i12.FotoCustomerController {
|
||||
implements _i9.FotoCustomerController {
|
||||
MockFotoCustomerController() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i10.Future<List<_i13.CustomerListDto>> getAll(
|
||||
_i7.Future<List<_i10.CustomerListDto>> getAll(
|
||||
String? query,
|
||||
String? startsWith,
|
||||
) =>
|
||||
@@ -258,22 +213,22 @@ class MockFotoCustomerController extends _i1.Mock
|
||||
startsWith,
|
||||
],
|
||||
),
|
||||
returnValue: _i10.Future<List<_i13.CustomerListDto>>.value(
|
||||
<_i13.CustomerListDto>[]),
|
||||
) as _i10.Future<List<_i13.CustomerListDto>>);
|
||||
returnValue: _i7.Future<List<_i10.CustomerListDto>>.value(
|
||||
<_i10.CustomerListDto>[]),
|
||||
) as _i7.Future<List<_i10.CustomerListDto>>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i13.CustomerDto?> get({required int? id}) => (super.noSuchMethod(
|
||||
_i7.Future<_i10.CustomerDto?> get({required int? id}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#get,
|
||||
[],
|
||||
{#id: id},
|
||||
),
|
||||
returnValue: _i10.Future<_i13.CustomerDto?>.value(),
|
||||
) as _i10.Future<_i13.CustomerDto?>);
|
||||
returnValue: _i7.Future<_i10.CustomerDto?>.value(),
|
||||
) as _i7.Future<_i10.CustomerDto?>);
|
||||
|
||||
@override
|
||||
_i10.Future<List<int>> export({
|
||||
_i7.Future<List<int>> export({
|
||||
required int? customerId,
|
||||
int? pictureId,
|
||||
}) =>
|
||||
@@ -286,42 +241,42 @@ class MockFotoCustomerController extends _i1.Mock
|
||||
#pictureId: pictureId,
|
||||
},
|
||||
),
|
||||
returnValue: _i10.Future<List<int>>.value(<int>[]),
|
||||
) as _i10.Future<List<int>>);
|
||||
returnValue: _i7.Future<List<int>>.value(<int>[]),
|
||||
) as _i7.Future<List<int>>);
|
||||
}
|
||||
|
||||
/// A class which mocks [PictureController].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockPictureController extends _i1.Mock implements _i14.PictureController {
|
||||
class MockPictureController extends _i1.Mock implements _i11.PictureController {
|
||||
MockPictureController() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i10.Future<bool> delete(_i15.PictureDto? dto) => (super.noSuchMethod(
|
||||
_i7.Future<bool> delete(_i12.PictureDto? dto) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#delete,
|
||||
[dto],
|
||||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
returnValue: _i7.Future<bool>.value(false),
|
||||
) as _i7.Future<bool>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> updateEvaluation(_i15.PictureDto? dto) =>
|
||||
_i7.Future<bool> updateEvaluation(_i12.PictureDto? dto) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#updateEvaluation,
|
||||
[dto],
|
||||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
returnValue: _i7.Future<bool>.value(false),
|
||||
) as _i7.Future<bool>);
|
||||
}
|
||||
|
||||
/// A class which mocks [JwtTokenStorage].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockJwtTokenStorage extends _i1.Mock implements _i16.JwtTokenStorage {
|
||||
class MockJwtTokenStorage extends _i1.Mock implements _i13.JwtTokenStorage {
|
||||
MockJwtTokenStorage() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
@@ -374,69 +329,42 @@ class MockJwtTokenStorage extends _i1.Mock implements _i16.JwtTokenStorage {
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockQuestionnaireController extends _i1.Mock
|
||||
implements _i17.QuestionnaireController {
|
||||
implements _i14.QuestionnaireController {
|
||||
MockQuestionnaireController() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i10.Future<bool> delete(_i18.QuestionnaireDto? dto) => (super.noSuchMethod(
|
||||
_i7.Future<bool> delete(_i15.QuestionnaireDto? dto) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#delete,
|
||||
[dto],
|
||||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
returnValue: _i7.Future<bool>.value(false),
|
||||
) as _i7.Future<bool>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> updateEvaluation(_i18.QuestionnaireDto? dto) =>
|
||||
_i7.Future<bool> updateEvaluation(_i15.QuestionnaireDto? dto) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#updateEvaluation,
|
||||
[dto],
|
||||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
returnValue: _i7.Future<bool>.value(false),
|
||||
) as _i7.Future<bool>);
|
||||
}
|
||||
|
||||
/// A class which mocks [QuestionnaireCustomerControllerImpl].
|
||||
/// A class which mocks [QuestionnaireCustomerController].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockQuestionnaireCustomerControllerImpl extends _i1.Mock
|
||||
implements _i19.QuestionnaireCustomerControllerImpl {
|
||||
MockQuestionnaireCustomerControllerImpl() {
|
||||
class MockQuestionnaireCustomerController extends _i1.Mock
|
||||
implements _i16.QuestionnaireCustomerController {
|
||||
MockQuestionnaireCustomerController() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
String get path => (super.noSuchMethod(
|
||||
Invocation.getter(#path),
|
||||
returnValue: _i7.dummyValue<String>(
|
||||
this,
|
||||
Invocation.getter(#path),
|
||||
),
|
||||
) as String);
|
||||
|
||||
@override
|
||||
_i2.UrlUtils get uriUtils => (super.noSuchMethod(
|
||||
Invocation.getter(#uriUtils),
|
||||
returnValue: _FakeUrlUtils_0(
|
||||
this,
|
||||
Invocation.getter(#uriUtils),
|
||||
),
|
||||
) as _i2.UrlUtils);
|
||||
|
||||
@override
|
||||
_i3.HttpClientUtils get httpClientUtils => (super.noSuchMethod(
|
||||
Invocation.getter(#httpClientUtils),
|
||||
returnValue: _FakeHttpClientUtils_1(
|
||||
this,
|
||||
Invocation.getter(#httpClientUtils),
|
||||
),
|
||||
) as _i3.HttpClientUtils);
|
||||
|
||||
@override
|
||||
_i10.Future<List<_i20.QuestionnaireCustomerListDto>> getAll(
|
||||
_i7.Future<List<_i17.QuestionnaireCustomerListDto>> getAll(
|
||||
String? query,
|
||||
String? startsWith,
|
||||
) =>
|
||||
@@ -448,23 +376,23 @@ class MockQuestionnaireCustomerControllerImpl extends _i1.Mock
|
||||
startsWith,
|
||||
],
|
||||
),
|
||||
returnValue: _i10.Future<List<_i20.QuestionnaireCustomerListDto>>.value(
|
||||
<_i20.QuestionnaireCustomerListDto>[]),
|
||||
) as _i10.Future<List<_i20.QuestionnaireCustomerListDto>>);
|
||||
returnValue: _i7.Future<List<_i17.QuestionnaireCustomerListDto>>.value(
|
||||
<_i17.QuestionnaireCustomerListDto>[]),
|
||||
) as _i7.Future<List<_i17.QuestionnaireCustomerListDto>>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i20.QuestionnaireCustomerDto?> get({required int? id}) =>
|
||||
_i7.Future<_i17.QuestionnaireCustomerDto?> get({required int? id}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#get,
|
||||
[],
|
||||
{#id: id},
|
||||
),
|
||||
returnValue: _i10.Future<_i20.QuestionnaireCustomerDto?>.value(),
|
||||
) as _i10.Future<_i20.QuestionnaireCustomerDto?>);
|
||||
returnValue: _i7.Future<_i17.QuestionnaireCustomerDto?>.value(),
|
||||
) as _i7.Future<_i17.QuestionnaireCustomerDto?>);
|
||||
|
||||
@override
|
||||
_i10.Future<List<int>> export({
|
||||
_i7.Future<List<int>> export({
|
||||
required int? customerId,
|
||||
int? questionnaireId,
|
||||
}) =>
|
||||
@@ -477,110 +405,20 @@ class MockQuestionnaireCustomerControllerImpl extends _i1.Mock
|
||||
#questionnaireId: questionnaireId,
|
||||
},
|
||||
),
|
||||
returnValue: _i10.Future<List<int>>.value(<int>[]),
|
||||
) as _i10.Future<List<int>>);
|
||||
|
||||
@override
|
||||
_i4.Header getAuthHeader() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getAuthHeader,
|
||||
[],
|
||||
),
|
||||
returnValue: _FakeHeader_2(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getAuthHeader,
|
||||
[],
|
||||
),
|
||||
),
|
||||
) as _i4.Header);
|
||||
|
||||
@override
|
||||
Exception getServerError(_i5.Response? response) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getServerError,
|
||||
[response],
|
||||
),
|
||||
returnValue: _FakeException_3(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getServerError,
|
||||
[response],
|
||||
),
|
||||
),
|
||||
) as Exception);
|
||||
|
||||
@override
|
||||
_i10.Future<List<T>> runGetListWithAuth<T>(
|
||||
String? uriStr,
|
||||
List<T> Function(dynamic)? convert,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#runGetListWithAuth,
|
||||
[
|
||||
uriStr,
|
||||
convert,
|
||||
],
|
||||
),
|
||||
returnValue: _i10.Future<List<T>>.value(<T>[]),
|
||||
) as _i10.Future<List<T>>);
|
||||
|
||||
@override
|
||||
_i10.Future<T?> runGetWithAuth<T>(
|
||||
String? uriStr,
|
||||
T Function(dynamic)? convert,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#runGetWithAuth,
|
||||
[
|
||||
uriStr,
|
||||
convert,
|
||||
],
|
||||
),
|
||||
returnValue: _i10.Future<T?>.value(),
|
||||
) as _i10.Future<T?>);
|
||||
|
||||
@override
|
||||
_i10.Future<List<int>> runGetBytesWithAuth(String? uriStr) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#runGetBytesWithAuth,
|
||||
[uriStr],
|
||||
),
|
||||
returnValue: _i10.Future<List<int>>.value(<int>[]),
|
||||
) as _i10.Future<List<int>>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> runDeleteWithAuth(String? uriStr) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#runDeleteWithAuth,
|
||||
[uriStr],
|
||||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
|
||||
@override
|
||||
_i10.Future<bool> runPutWithAuth(String? uriStr) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#runPutWithAuth,
|
||||
[uriStr],
|
||||
),
|
||||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
returnValue: _i7.Future<List<int>>.value(<int>[]),
|
||||
) as _i7.Future<List<int>>);
|
||||
}
|
||||
|
||||
/// A class which mocks [Client].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockClient extends _i1.Mock implements _i5.Client {
|
||||
class MockClient extends _i1.Mock implements _i2.Client {
|
||||
MockClient() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i10.Future<_i5.Response> head(
|
||||
_i7.Future<_i2.Response> head(
|
||||
Uri? url, {
|
||||
Map<String, String>? headers,
|
||||
}) =>
|
||||
@@ -590,7 +428,7 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
[url],
|
||||
{#headers: headers},
|
||||
),
|
||||
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#head,
|
||||
@@ -598,10 +436,10 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
{#headers: headers},
|
||||
),
|
||||
)),
|
||||
) as _i10.Future<_i5.Response>);
|
||||
) as _i7.Future<_i2.Response>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i5.Response> get(
|
||||
_i7.Future<_i2.Response> get(
|
||||
Uri? url, {
|
||||
Map<String, String>? headers,
|
||||
}) =>
|
||||
@@ -611,7 +449,7 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
[url],
|
||||
{#headers: headers},
|
||||
),
|
||||
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#get,
|
||||
@@ -619,14 +457,14 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
{#headers: headers},
|
||||
),
|
||||
)),
|
||||
) as _i10.Future<_i5.Response>);
|
||||
) as _i7.Future<_i2.Response>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i5.Response> post(
|
||||
_i7.Future<_i2.Response> post(
|
||||
Uri? url, {
|
||||
Map<String, String>? headers,
|
||||
Object? body,
|
||||
_i21.Encoding? encoding,
|
||||
_i18.Encoding? encoding,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
@@ -638,7 +476,7 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
#encoding: encoding,
|
||||
},
|
||||
),
|
||||
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#post,
|
||||
@@ -650,14 +488,14 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
},
|
||||
),
|
||||
)),
|
||||
) as _i10.Future<_i5.Response>);
|
||||
) as _i7.Future<_i2.Response>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i5.Response> put(
|
||||
_i7.Future<_i2.Response> put(
|
||||
Uri? url, {
|
||||
Map<String, String>? headers,
|
||||
Object? body,
|
||||
_i21.Encoding? encoding,
|
||||
_i18.Encoding? encoding,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
@@ -669,7 +507,7 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
#encoding: encoding,
|
||||
},
|
||||
),
|
||||
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#put,
|
||||
@@ -681,14 +519,14 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
},
|
||||
),
|
||||
)),
|
||||
) as _i10.Future<_i5.Response>);
|
||||
) as _i7.Future<_i2.Response>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i5.Response> patch(
|
||||
_i7.Future<_i2.Response> patch(
|
||||
Uri? url, {
|
||||
Map<String, String>? headers,
|
||||
Object? body,
|
||||
_i21.Encoding? encoding,
|
||||
_i18.Encoding? encoding,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
@@ -700,7 +538,7 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
#encoding: encoding,
|
||||
},
|
||||
),
|
||||
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#patch,
|
||||
@@ -712,14 +550,14 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
},
|
||||
),
|
||||
)),
|
||||
) as _i10.Future<_i5.Response>);
|
||||
) as _i7.Future<_i2.Response>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i5.Response> delete(
|
||||
_i7.Future<_i2.Response> delete(
|
||||
Uri? url, {
|
||||
Map<String, String>? headers,
|
||||
Object? body,
|
||||
_i21.Encoding? encoding,
|
||||
_i18.Encoding? encoding,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
@@ -731,7 +569,7 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
#encoding: encoding,
|
||||
},
|
||||
),
|
||||
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#delete,
|
||||
@@ -743,10 +581,10 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
},
|
||||
),
|
||||
)),
|
||||
) as _i10.Future<_i5.Response>);
|
||||
) as _i7.Future<_i2.Response>);
|
||||
|
||||
@override
|
||||
_i10.Future<String> read(
|
||||
_i7.Future<String> read(
|
||||
Uri? url, {
|
||||
Map<String, String>? headers,
|
||||
}) =>
|
||||
@@ -756,7 +594,7 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
[url],
|
||||
{#headers: headers},
|
||||
),
|
||||
returnValue: _i10.Future<String>.value(_i7.dummyValue<String>(
|
||||
returnValue: _i7.Future<String>.value(_i4.dummyValue<String>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#read,
|
||||
@@ -764,10 +602,10 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
{#headers: headers},
|
||||
),
|
||||
)),
|
||||
) as _i10.Future<String>);
|
||||
) as _i7.Future<String>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i22.Uint8List> readBytes(
|
||||
_i7.Future<_i19.Uint8List> readBytes(
|
||||
Uri? url, {
|
||||
Map<String, String>? headers,
|
||||
}) =>
|
||||
@@ -777,25 +615,25 @@ class MockClient extends _i1.Mock implements _i5.Client {
|
||||
[url],
|
||||
{#headers: headers},
|
||||
),
|
||||
returnValue: _i10.Future<_i22.Uint8List>.value(_i22.Uint8List(0)),
|
||||
) as _i10.Future<_i22.Uint8List>);
|
||||
returnValue: _i7.Future<_i19.Uint8List>.value(_i19.Uint8List(0)),
|
||||
) as _i7.Future<_i19.Uint8List>);
|
||||
|
||||
@override
|
||||
_i10.Future<_i5.StreamedResponse> send(_i5.BaseRequest? request) =>
|
||||
_i7.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#send,
|
||||
[request],
|
||||
),
|
||||
returnValue:
|
||||
_i10.Future<_i5.StreamedResponse>.value(_FakeStreamedResponse_5(
|
||||
_i7.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
#send,
|
||||
[request],
|
||||
),
|
||||
)),
|
||||
) as _i10.Future<_i5.StreamedResponse>);
|
||||
) as _i7.Future<_i2.StreamedResponse>);
|
||||
|
||||
@override
|
||||
void close() => super.noSuchMethod(
|
||||
|
||||
Reference in New Issue
Block a user