fix test
This commit is contained in:
@@ -186,6 +186,194 @@ class ImageUtilTest {
|
|||||||
assertEquals((byte) 0xFF, result[2]);
|
assertEquals((byte) 0xFF, result[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// --- EXIF orientation: applyOrientation ---
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation1_returnsSameInstance() {
|
||||||
|
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 1);
|
||||||
|
|
||||||
|
assertSame(image, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation2_horizontalFlip_preservesDimensions() {
|
||||||
|
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 2);
|
||||||
|
|
||||||
|
assertEquals(800, result.getWidth());
|
||||||
|
assertEquals(600, result.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation3_rotate180_preservesDimensions() {
|
||||||
|
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 3);
|
||||||
|
|
||||||
|
assertEquals(800, result.getWidth());
|
||||||
|
assertEquals(600, result.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation4_verticalFlip_preservesDimensions() {
|
||||||
|
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 4);
|
||||||
|
|
||||||
|
assertEquals(800, result.getWidth());
|
||||||
|
assertEquals(600, result.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation5_swapsDimensions() {
|
||||||
|
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 5);
|
||||||
|
|
||||||
|
assertEquals(600, result.getWidth());
|
||||||
|
assertEquals(800, result.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation6_rotate90cw_swapsDimensions() {
|
||||||
|
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 6);
|
||||||
|
|
||||||
|
assertEquals(600, result.getWidth());
|
||||||
|
assertEquals(800, result.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation7_swapsDimensions() {
|
||||||
|
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 7);
|
||||||
|
|
||||||
|
assertEquals(600, result.getWidth());
|
||||||
|
assertEquals(800, result.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation8_rotate90ccw_swapsDimensions() {
|
||||||
|
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 8);
|
||||||
|
|
||||||
|
assertEquals(600, result.getWidth());
|
||||||
|
assertEquals(800, result.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_unknownOrientation_returnsSameInstance() {
|
||||||
|
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 99);
|
||||||
|
|
||||||
|
assertSame(image, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation2_flipsPixelsHorizontally() {
|
||||||
|
BufferedImage image = new BufferedImage(4, 2, BufferedImage.TYPE_INT_RGB);
|
||||||
|
image.setRGB(0, 0, 0xFF0000); // red at top-left
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 2);
|
||||||
|
|
||||||
|
assertEquals(0xFF0000, result.getRGB(3, 0) & 0xFFFFFF); // red at top-right
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation3_rotates180() {
|
||||||
|
BufferedImage image = new BufferedImage(4, 2, BufferedImage.TYPE_INT_RGB);
|
||||||
|
image.setRGB(0, 0, 0xFF0000); // red at top-left
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 3);
|
||||||
|
|
||||||
|
assertEquals(0xFF0000, result.getRGB(3, 1) & 0xFFFFFF); // red at bottom-right
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation6_rotates90cw_returnsNewImage() {
|
||||||
|
BufferedImage image = new BufferedImage(4, 2, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 6);
|
||||||
|
|
||||||
|
assertNotSame(image, result);
|
||||||
|
assertEquals(2, result.getWidth());
|
||||||
|
assertEquals(4, result.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void applyOrientation_orientation8_rotates90ccw_returnsNewImage() {
|
||||||
|
BufferedImage image = new BufferedImage(4, 2, BufferedImage.TYPE_INT_RGB);
|
||||||
|
|
||||||
|
BufferedImage result = imageUtil.applyOrientation(image, 8);
|
||||||
|
|
||||||
|
assertNotSame(image, result);
|
||||||
|
assertEquals(2, result.getWidth());
|
||||||
|
assertEquals(4, result.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- EXIF orientation: getExifOrientation ---
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void getExifOrientation_pngWithNoExif_returns1() {
|
||||||
|
String base64 = createTestImageBase64(100, 100);
|
||||||
|
byte[] imageBytes = Base64.getDecoder().decode(base64);
|
||||||
|
|
||||||
|
int orientation = imageUtil.getExifOrientation(imageBytes);
|
||||||
|
|
||||||
|
assertEquals(1, orientation);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void getExifOrientation_invalidBytes_returns1() {
|
||||||
|
byte[] garbage = new byte[]{0x00, 0x01, 0x02, 0x03};
|
||||||
|
|
||||||
|
int orientation = imageUtil.getExifOrientation(garbage);
|
||||||
|
|
||||||
|
assertEquals(1, orientation);
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- EXIF orientation through getImage (size 1 / default) ---
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void getImage_size1_noExif_returnsOriginalUnchanged() {
|
||||||
|
String base64 = createTestImageBase64(400, 300);
|
||||||
|
byte[] original = Base64.getDecoder().decode(base64);
|
||||||
|
|
||||||
|
byte[] result = imageUtil.getImage(base64, 1);
|
||||||
|
|
||||||
|
assertArrayEquals(original, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void getImage_defaultSize_noExif_returnsOriginalUnchanged() {
|
||||||
|
String base64 = createTestImageBase64(400, 300);
|
||||||
|
byte[] original = Base64.getDecoder().decode(base64);
|
||||||
|
|
||||||
|
byte[] result = imageUtil.getImage(base64, 42);
|
||||||
|
|
||||||
|
assertArrayEquals(original, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- EXIF orientation with resize ---
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void getImage_size2_rotatedImage_usesEffectiveWidthForResizeDecision() throws IOException {
|
||||||
|
// A tall image (600x800) with no EXIF won't be resized since width (600) < 1200
|
||||||
|
String base64 = createTestImageBase64(600, 800);
|
||||||
|
byte[] original = Base64.getDecoder().decode(base64);
|
||||||
|
|
||||||
|
byte[] result = imageUtil.getImage(base64, 2);
|
||||||
|
|
||||||
|
assertArrayEquals(original, result);
|
||||||
|
}
|
||||||
|
|
||||||
// --- Edge cases ---
|
// --- Edge cases ---
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ void main() {
|
|||||||
.thenAnswer((_) async => http.Response(_customerJson, 200));
|
.thenAnswer((_) async => http.Response(_customerJson, 200));
|
||||||
|
|
||||||
var dto = await controller.get(id: 4);
|
var dto = await controller.get(id: 4);
|
||||||
expect(dto, isA<QuestionnaireCustomerListDto>());
|
expect(dto, isA<QuestionnaireCustomerDto>());
|
||||||
});
|
});
|
||||||
|
|
||||||
test('export a customer', () async {
|
test('export a customer', () async {
|
||||||
@@ -67,7 +67,7 @@ void main() {
|
|||||||
final client = MockClient();
|
final client = MockClient();
|
||||||
DiContainer.instance.put(HttpClientUtils, TestHttpCLientUtilsImpl(client));
|
DiContainer.instance.put(HttpClientUtils, TestHttpCLientUtilsImpl(client));
|
||||||
|
|
||||||
when(client.get(Uri.parse('http://localhost:8080/api/questionnairecustomer/export/4?picture=1'), headers: {"Accept-Language": "en-US"}))
|
when(client.get(Uri.parse('http://localhost:8080/api/questionnairecustomer/export/4?questionnaire=1'), headers: {"Accept-Language": "en-US"}))
|
||||||
.thenAnswer((_) async => http.Response(_customerJson, 200));
|
.thenAnswer((_) async => http.Response(_customerJson, 200));
|
||||||
|
|
||||||
var dto = await controller.export(customerId: 4, questionnaireId: 1);
|
var dto = await controller.export(customerId: 4, questionnaireId: 1);
|
||||||
@@ -100,28 +100,24 @@ String _customerJson = '''{
|
|||||||
"id": 1,
|
"id": 1,
|
||||||
"name": "Müller Apotheke",
|
"name": "Müller Apotheke",
|
||||||
"customerNumber": "1234",
|
"customerNumber": "1234",
|
||||||
"pictures": [
|
"city": "Hannover",
|
||||||
|
"zip": "12345",
|
||||||
|
"questionnaires": [
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"comment": "good looking picture 1",
|
"comment": "good looking picture 1",
|
||||||
"category": null,
|
"category": null,
|
||||||
"pictureDate": 1729764570000,
|
"questionnaireDate": 1767262170000,
|
||||||
"evaluation": 1,
|
|
||||||
"username": "verboomp",
|
"username": "verboomp",
|
||||||
"imageUrl": "",
|
"evaluation": 1
|
||||||
"normalSizeUrl": "",
|
|
||||||
"thumbnailSizeUrl": ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
"comment": "good looking picture 2",
|
"comment": "good looking picture 2",
|
||||||
"category": null,
|
"category": null,
|
||||||
"pictureDate": 1729764570000,
|
"questionnaireDate": 1767348570000,
|
||||||
"evaluation": 1,
|
|
||||||
"username": "verboomp",
|
"username": "verboomp",
|
||||||
"imageUrl": "",
|
"evaluation": 1
|
||||||
"normalSizeUrl": "",
|
|
||||||
"thumbnailSizeUrl": ""
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}''';
|
}''';
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||||
|
import 'package:fotodocumentation/controller/questionnaire_controller.dart';
|
||||||
|
import 'package:fotodocumentation/controller/questionnaire_customer_controller.dart';
|
||||||
|
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:mockito/annotations.dart';
|
import 'package:mockito/annotations.dart';
|
||||||
@@ -66,6 +68,8 @@ Future<void> pumpAppConfig(WidgetTester tester, String initialLocation) async {
|
|||||||
FotoCustomerController,
|
FotoCustomerController,
|
||||||
PictureController,
|
PictureController,
|
||||||
JwtTokenStorage,
|
JwtTokenStorage,
|
||||||
|
QuestionnaireController,
|
||||||
|
QuestionnaireCustomerControllerImpl,
|
||||||
http.Client,
|
http.Client,
|
||||||
])
|
])
|
||||||
void main() {}
|
void main() {}
|
||||||
|
|||||||
@@ -3,22 +3,32 @@
|
|||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i7;
|
import 'dart:async' as _i10;
|
||||||
import 'dart:convert' as _i14;
|
import 'dart:convert' as _i21;
|
||||||
import 'dart:typed_data' as _i15;
|
import 'dart:typed_data' as _i22;
|
||||||
import 'dart:ui' as _i5;
|
import 'dart:ui' as _i8;
|
||||||
|
|
||||||
import 'package:fotodocumentation/controller/foto_customer_controller.dart' as _i9;
|
import 'package:fotodocumentation/controller/base_controller.dart' as _i4;
|
||||||
import 'package:fotodocumentation/controller/login_controller.dart' as _i6;
|
import 'package:fotodocumentation/controller/foto_customer_controller.dart'
|
||||||
import 'package:fotodocumentation/controller/picture_controller.dart' as _i11;
|
as _i12;
|
||||||
import 'package:fotodocumentation/dto/customer_dto.dart' as _i10;
|
import 'package:fotodocumentation/controller/login_controller.dart' as _i9;
|
||||||
import 'package:fotodocumentation/dto/jwt_token_pair_dto.dart' as _i8;
|
import 'package:fotodocumentation/controller/picture_controller.dart' as _i14;
|
||||||
import 'package:fotodocumentation/dto/picture_dto.dart' as _i12;
|
import 'package:fotodocumentation/controller/questionnaire_controller.dart'
|
||||||
import 'package:fotodocumentation/utils/jwt_token_storage.dart' as _i13;
|
as _i17;
|
||||||
import 'package:fotodocumentation/utils/login_credentials.dart' as _i3;
|
import 'package:fotodocumentation/controller/questionnaire_customer_controller.dart'
|
||||||
import 'package:http/http.dart' as _i2;
|
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;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i4;
|
import 'package:mockito/src/dummies.dart' as _i7;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
@@ -35,8 +45,8 @@ import 'package:mockito/src/dummies.dart' as _i4;
|
|||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
// ignore_for_file: invalid_use_of_internal_member
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
|
class _FakeUrlUtils_0 extends _i1.SmartFake implements _i2.UrlUtils {
|
||||||
_FakeResponse_0(
|
_FakeUrlUtils_0(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
@@ -45,9 +55,50 @@ class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeStreamedResponse_1 extends _i1.SmartFake
|
class _FakeHttpClientUtils_1 extends _i1.SmartFake
|
||||||
implements _i2.StreamedResponse {
|
implements _i3.HttpClientUtils {
|
||||||
_FakeStreamedResponse_1(
|
_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(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
@@ -59,7 +110,7 @@ class _FakeStreamedResponse_1 extends _i1.SmartFake
|
|||||||
/// A class which mocks [LoginCredentials].
|
/// A class which mocks [LoginCredentials].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockLoginCredentials extends _i1.Mock implements _i3.LoginCredentials {
|
class MockLoginCredentials extends _i1.Mock implements _i6.LoginCredentials {
|
||||||
MockLoginCredentials() {
|
MockLoginCredentials() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
@@ -67,7 +118,7 @@ class MockLoginCredentials extends _i1.Mock implements _i3.LoginCredentials {
|
|||||||
@override
|
@override
|
||||||
String get fullname => (super.noSuchMethod(
|
String get fullname => (super.noSuchMethod(
|
||||||
Invocation.getter(#fullname),
|
Invocation.getter(#fullname),
|
||||||
returnValue: _i4.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#fullname),
|
Invocation.getter(#fullname),
|
||||||
),
|
),
|
||||||
@@ -104,7 +155,7 @@ class MockLoginCredentials extends _i1.Mock implements _i3.LoginCredentials {
|
|||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addListener,
|
#addListener,
|
||||||
[listener],
|
[listener],
|
||||||
@@ -113,7 +164,7 @@ class MockLoginCredentials extends _i1.Mock implements _i3.LoginCredentials {
|
|||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#removeListener,
|
#removeListener,
|
||||||
[listener],
|
[listener],
|
||||||
@@ -143,13 +194,13 @@ class MockLoginCredentials extends _i1.Mock implements _i3.LoginCredentials {
|
|||||||
/// A class which mocks [LoginController].
|
/// A class which mocks [LoginController].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockLoginController extends _i1.Mock implements _i6.LoginController {
|
class MockLoginController extends _i1.Mock implements _i9.LoginController {
|
||||||
MockLoginController() {
|
MockLoginController() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<({_i8.JwtTokenPairDto? jwtTokenPairDto})> authenticate(
|
_i10.Future<({_i11.JwtTokenPairDto? jwtTokenPairDto})> authenticate(
|
||||||
String? username,
|
String? username,
|
||||||
String? password,
|
String? password,
|
||||||
) =>
|
) =>
|
||||||
@@ -161,18 +212,19 @@ class MockLoginController extends _i1.Mock implements _i6.LoginController {
|
|||||||
password,
|
password,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<({_i8.JwtTokenPairDto? jwtTokenPairDto})>.value(
|
returnValue:
|
||||||
(jwtTokenPairDto: null)),
|
_i10.Future<({_i11.JwtTokenPairDto? jwtTokenPairDto})>.value(
|
||||||
) as _i7.Future<({_i8.JwtTokenPairDto? jwtTokenPairDto})>);
|
(jwtTokenPairDto: null)),
|
||||||
|
) as _i10.Future<({_i11.JwtTokenPairDto? jwtTokenPairDto})>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<bool> refreshAccessToken() => (super.noSuchMethod(
|
_i10.Future<bool> refreshAccessToken() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#refreshAccessToken,
|
#refreshAccessToken,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<bool>.value(false),
|
returnValue: _i10.Future<bool>.value(false),
|
||||||
) as _i7.Future<bool>);
|
) as _i10.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool isUsingJwtAuth() => (super.noSuchMethod(
|
bool isUsingJwtAuth() => (super.noSuchMethod(
|
||||||
@@ -184,17 +236,17 @@ class MockLoginController extends _i1.Mock implements _i6.LoginController {
|
|||||||
) as bool);
|
) as bool);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CustomerController].
|
/// A class which mocks [FotoCustomerController].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockCustomerController extends _i1.Mock
|
class MockFotoCustomerController extends _i1.Mock
|
||||||
implements _i9.FotoCustomerController {
|
implements _i12.FotoCustomerController {
|
||||||
MockCustomerController() {
|
MockFotoCustomerController() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<List<_i10.CustomerListDto>> getAll(
|
_i10.Future<List<_i13.CustomerListDto>> getAll(
|
||||||
String? query,
|
String? query,
|
||||||
String? startsWith,
|
String? startsWith,
|
||||||
) =>
|
) =>
|
||||||
@@ -206,22 +258,22 @@ class MockCustomerController extends _i1.Mock
|
|||||||
startsWith,
|
startsWith,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<List<_i10.CustomerListDto>>.value(
|
returnValue: _i10.Future<List<_i13.CustomerListDto>>.value(
|
||||||
<_i10.CustomerListDto>[]),
|
<_i13.CustomerListDto>[]),
|
||||||
) as _i7.Future<List<_i10.CustomerListDto>>);
|
) as _i10.Future<List<_i13.CustomerListDto>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i10.CustomerDto?> get({required int? id}) => (super.noSuchMethod(
|
_i10.Future<_i13.CustomerDto?> get({required int? id}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#get,
|
#get,
|
||||||
[],
|
[],
|
||||||
{#id: id},
|
{#id: id},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i10.CustomerDto?>.value(),
|
returnValue: _i10.Future<_i13.CustomerDto?>.value(),
|
||||||
) as _i7.Future<_i10.CustomerDto?>);
|
) as _i10.Future<_i13.CustomerDto?>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<List<int>> export({
|
_i10.Future<List<int>> export({
|
||||||
required int? customerId,
|
required int? customerId,
|
||||||
int? pictureId,
|
int? pictureId,
|
||||||
}) =>
|
}) =>
|
||||||
@@ -234,42 +286,42 @@ class MockCustomerController extends _i1.Mock
|
|||||||
#pictureId: pictureId,
|
#pictureId: pictureId,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<List<int>>.value(<int>[]),
|
returnValue: _i10.Future<List<int>>.value(<int>[]),
|
||||||
) as _i7.Future<List<int>>);
|
) as _i10.Future<List<int>>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [PictureController].
|
/// A class which mocks [PictureController].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockPictureController extends _i1.Mock implements _i11.PictureController {
|
class MockPictureController extends _i1.Mock implements _i14.PictureController {
|
||||||
MockPictureController() {
|
MockPictureController() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<bool> delete(_i12.PictureDto? dto) => (super.noSuchMethod(
|
_i10.Future<bool> delete(_i15.PictureDto? dto) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#delete,
|
#delete,
|
||||||
[dto],
|
[dto],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<bool>.value(false),
|
returnValue: _i10.Future<bool>.value(false),
|
||||||
) as _i7.Future<bool>);
|
) as _i10.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<bool> updateEvaluation(_i12.PictureDto? dto) =>
|
_i10.Future<bool> updateEvaluation(_i15.PictureDto? dto) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#updateEvaluation,
|
#updateEvaluation,
|
||||||
[dto],
|
[dto],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<bool>.value(false),
|
returnValue: _i10.Future<bool>.value(false),
|
||||||
) as _i7.Future<bool>);
|
) as _i10.Future<bool>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [JwtTokenStorage].
|
/// A class which mocks [JwtTokenStorage].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockJwtTokenStorage extends _i1.Mock implements _i13.JwtTokenStorage {
|
class MockJwtTokenStorage extends _i1.Mock implements _i16.JwtTokenStorage {
|
||||||
MockJwtTokenStorage() {
|
MockJwtTokenStorage() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
@@ -318,16 +370,217 @@ class MockJwtTokenStorage extends _i1.Mock implements _i13.JwtTokenStorage {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// A class which mocks [QuestionnaireController].
|
||||||
|
///
|
||||||
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
|
class MockQuestionnaireController extends _i1.Mock
|
||||||
|
implements _i17.QuestionnaireController {
|
||||||
|
MockQuestionnaireController() {
|
||||||
|
_i1.throwOnMissingStub(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i10.Future<bool> delete(_i18.QuestionnaireDto? dto) => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#delete,
|
||||||
|
[dto],
|
||||||
|
),
|
||||||
|
returnValue: _i10.Future<bool>.value(false),
|
||||||
|
) as _i10.Future<bool>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i10.Future<bool> updateEvaluation(_i18.QuestionnaireDto? dto) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#updateEvaluation,
|
||||||
|
[dto],
|
||||||
|
),
|
||||||
|
returnValue: _i10.Future<bool>.value(false),
|
||||||
|
) as _i10.Future<bool>);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// A class which mocks [QuestionnaireCustomerControllerImpl].
|
||||||
|
///
|
||||||
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
|
class MockQuestionnaireCustomerControllerImpl extends _i1.Mock
|
||||||
|
implements _i19.QuestionnaireCustomerControllerImpl {
|
||||||
|
MockQuestionnaireCustomerControllerImpl() {
|
||||||
|
_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(
|
||||||
|
String? query,
|
||||||
|
String? startsWith,
|
||||||
|
) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getAll,
|
||||||
|
[
|
||||||
|
query,
|
||||||
|
startsWith,
|
||||||
|
],
|
||||||
|
),
|
||||||
|
returnValue: _i10.Future<List<_i20.QuestionnaireCustomerListDto>>.value(
|
||||||
|
<_i20.QuestionnaireCustomerListDto>[]),
|
||||||
|
) as _i10.Future<List<_i20.QuestionnaireCustomerListDto>>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i10.Future<_i20.QuestionnaireCustomerDto?> get({required int? id}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#get,
|
||||||
|
[],
|
||||||
|
{#id: id},
|
||||||
|
),
|
||||||
|
returnValue: _i10.Future<_i20.QuestionnaireCustomerDto?>.value(),
|
||||||
|
) as _i10.Future<_i20.QuestionnaireCustomerDto?>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i10.Future<List<int>> export({
|
||||||
|
required int? customerId,
|
||||||
|
int? questionnaireId,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#export,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#customerId: customerId,
|
||||||
|
#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>);
|
||||||
|
}
|
||||||
|
|
||||||
/// A class which mocks [Client].
|
/// A class which mocks [Client].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockClient extends _i1.Mock implements _i2.Client {
|
class MockClient extends _i1.Mock implements _i5.Client {
|
||||||
MockClient() {
|
MockClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i2.Response> head(
|
_i10.Future<_i5.Response> head(
|
||||||
Uri? url, {
|
Uri? url, {
|
||||||
Map<String, String>? headers,
|
Map<String, String>? headers,
|
||||||
}) =>
|
}) =>
|
||||||
@@ -337,7 +590,7 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
[url],
|
[url],
|
||||||
{#headers: headers},
|
{#headers: headers},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#head,
|
#head,
|
||||||
@@ -345,10 +598,10 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
{#headers: headers},
|
{#headers: headers},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<_i2.Response>);
|
) as _i10.Future<_i5.Response>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i2.Response> get(
|
_i10.Future<_i5.Response> get(
|
||||||
Uri? url, {
|
Uri? url, {
|
||||||
Map<String, String>? headers,
|
Map<String, String>? headers,
|
||||||
}) =>
|
}) =>
|
||||||
@@ -358,7 +611,7 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
[url],
|
[url],
|
||||||
{#headers: headers},
|
{#headers: headers},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#get,
|
#get,
|
||||||
@@ -366,14 +619,14 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
{#headers: headers},
|
{#headers: headers},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<_i2.Response>);
|
) as _i10.Future<_i5.Response>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i2.Response> post(
|
_i10.Future<_i5.Response> post(
|
||||||
Uri? url, {
|
Uri? url, {
|
||||||
Map<String, String>? headers,
|
Map<String, String>? headers,
|
||||||
Object? body,
|
Object? body,
|
||||||
_i14.Encoding? encoding,
|
_i21.Encoding? encoding,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
@@ -385,7 +638,7 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
#encoding: encoding,
|
#encoding: encoding,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#post,
|
#post,
|
||||||
@@ -397,14 +650,14 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<_i2.Response>);
|
) as _i10.Future<_i5.Response>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i2.Response> put(
|
_i10.Future<_i5.Response> put(
|
||||||
Uri? url, {
|
Uri? url, {
|
||||||
Map<String, String>? headers,
|
Map<String, String>? headers,
|
||||||
Object? body,
|
Object? body,
|
||||||
_i14.Encoding? encoding,
|
_i21.Encoding? encoding,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
@@ -416,7 +669,7 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
#encoding: encoding,
|
#encoding: encoding,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#put,
|
#put,
|
||||||
@@ -428,14 +681,14 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<_i2.Response>);
|
) as _i10.Future<_i5.Response>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i2.Response> patch(
|
_i10.Future<_i5.Response> patch(
|
||||||
Uri? url, {
|
Uri? url, {
|
||||||
Map<String, String>? headers,
|
Map<String, String>? headers,
|
||||||
Object? body,
|
Object? body,
|
||||||
_i14.Encoding? encoding,
|
_i21.Encoding? encoding,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
@@ -447,7 +700,7 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
#encoding: encoding,
|
#encoding: encoding,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#patch,
|
#patch,
|
||||||
@@ -459,14 +712,14 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<_i2.Response>);
|
) as _i10.Future<_i5.Response>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i2.Response> delete(
|
_i10.Future<_i5.Response> delete(
|
||||||
Uri? url, {
|
Uri? url, {
|
||||||
Map<String, String>? headers,
|
Map<String, String>? headers,
|
||||||
Object? body,
|
Object? body,
|
||||||
_i14.Encoding? encoding,
|
_i21.Encoding? encoding,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
@@ -478,7 +731,7 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
#encoding: encoding,
|
#encoding: encoding,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i2.Response>.value(_FakeResponse_0(
|
returnValue: _i10.Future<_i5.Response>.value(_FakeResponse_4(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#delete,
|
#delete,
|
||||||
@@ -490,10 +743,10 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<_i2.Response>);
|
) as _i10.Future<_i5.Response>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<String> read(
|
_i10.Future<String> read(
|
||||||
Uri? url, {
|
Uri? url, {
|
||||||
Map<String, String>? headers,
|
Map<String, String>? headers,
|
||||||
}) =>
|
}) =>
|
||||||
@@ -503,7 +756,7 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
[url],
|
[url],
|
||||||
{#headers: headers},
|
{#headers: headers},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<String>.value(_i4.dummyValue<String>(
|
returnValue: _i10.Future<String>.value(_i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#read,
|
#read,
|
||||||
@@ -511,10 +764,10 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
{#headers: headers},
|
{#headers: headers},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<String>);
|
) as _i10.Future<String>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i15.Uint8List> readBytes(
|
_i10.Future<_i22.Uint8List> readBytes(
|
||||||
Uri? url, {
|
Uri? url, {
|
||||||
Map<String, String>? headers,
|
Map<String, String>? headers,
|
||||||
}) =>
|
}) =>
|
||||||
@@ -524,25 +777,25 @@ class MockClient extends _i1.Mock implements _i2.Client {
|
|||||||
[url],
|
[url],
|
||||||
{#headers: headers},
|
{#headers: headers},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i15.Uint8List>.value(_i15.Uint8List(0)),
|
returnValue: _i10.Future<_i22.Uint8List>.value(_i22.Uint8List(0)),
|
||||||
) as _i7.Future<_i15.Uint8List>);
|
) as _i10.Future<_i22.Uint8List>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) =>
|
_i10.Future<_i5.StreamedResponse> send(_i5.BaseRequest? request) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#send,
|
#send,
|
||||||
[request],
|
[request],
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i7.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1(
|
_i10.Future<_i5.StreamedResponse>.value(_FakeStreamedResponse_5(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#send,
|
#send,
|
||||||
[request],
|
[request],
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<_i2.StreamedResponse>);
|
) as _i10.Future<_i5.StreamedResponse>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void close() => super.noSuchMethod(
|
void close() => super.noSuchMethod(
|
||||||
|
|||||||
Reference in New Issue
Block a user