275 lines
9.1 KiB
Dart
275 lines
9.1 KiB
Dart
// Mocks generated by Mockito 5.4.6 from annotations
|
|
// in lanebow/test/integration/notification_service_integration_test.dart.
|
|
// Do not manually edit this file.
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
import 'dart:async' as _i4;
|
|
|
|
import 'package:dio/dio.dart' as _i3;
|
|
import 'package:flutter_local_notifications/src/flutter_local_notifications_plugin.dart'
|
|
as _i5;
|
|
import 'package:flutter_local_notifications/src/initialization_settings.dart'
|
|
as _i6;
|
|
import 'package:flutter_local_notifications/src/notification_details.dart'
|
|
as _i8;
|
|
import 'package:flutter_local_notifications/src/platform_specifics/android/schedule_mode.dart'
|
|
as _i10;
|
|
import 'package:flutter_local_notifications/src/types.dart' as _i11;
|
|
import 'package:flutter_local_notifications_platform_interface/flutter_local_notifications_platform_interface.dart'
|
|
as _i7;
|
|
import 'package:lanebow/services/api_service.dart' as _i2;
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
import 'package:timezone/timezone.dart' as _i9;
|
|
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: avoid_redundant_argument_values
|
|
// ignore_for_file: avoid_setters_without_getters
|
|
// ignore_for_file: comment_references
|
|
// ignore_for_file: deprecated_member_use
|
|
// ignore_for_file: deprecated_member_use_from_same_package
|
|
// ignore_for_file: implementation_imports
|
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
|
// ignore_for_file: must_be_immutable
|
|
// ignore_for_file: prefer_const_constructors
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
// ignore_for_file: camel_case_types
|
|
// ignore_for_file: subtype_of_sealed_class
|
|
|
|
/// A class which mocks [ApiService].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockApiService extends _i1.Mock implements _i2.ApiService {
|
|
MockApiService() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
void setDio(_i3.Dio? dio) => super.noSuchMethod(
|
|
Invocation.method(#setDio, [dio]),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void setToken(String? token) => super.noSuchMethod(
|
|
Invocation.method(#setToken, [token]),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
_i4.Future<dynamic> get(
|
|
String? path, {
|
|
Map<String, dynamic>? queryParameters,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#get,
|
|
[path],
|
|
{#queryParameters: queryParameters},
|
|
),
|
|
returnValue: _i4.Future<dynamic>.value(),
|
|
)
|
|
as _i4.Future<dynamic>);
|
|
|
|
@override
|
|
_i4.Future<dynamic> post(String? path, {dynamic data}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#post, [path], {#data: data}),
|
|
returnValue: _i4.Future<dynamic>.value(),
|
|
)
|
|
as _i4.Future<dynamic>);
|
|
|
|
@override
|
|
_i4.Future<dynamic> put(String? path, {dynamic data}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#put, [path], {#data: data}),
|
|
returnValue: _i4.Future<dynamic>.value(),
|
|
)
|
|
as _i4.Future<dynamic>);
|
|
|
|
@override
|
|
_i4.Future<dynamic> delete(String? path) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#delete, [path]),
|
|
returnValue: _i4.Future<dynamic>.value(),
|
|
)
|
|
as _i4.Future<dynamic>);
|
|
}
|
|
|
|
/// A class which mocks [FlutterLocalNotificationsPlugin].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockFlutterLocalNotificationsPlugin extends _i1.Mock
|
|
implements _i5.FlutterLocalNotificationsPlugin {
|
|
MockFlutterLocalNotificationsPlugin() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i4.Future<bool?> initialize(
|
|
_i6.InitializationSettings? initializationSettings, {
|
|
_i7.DidReceiveNotificationResponseCallback?
|
|
onDidReceiveNotificationResponse,
|
|
_i7.DidReceiveBackgroundNotificationResponseCallback?
|
|
onDidReceiveBackgroundNotificationResponse,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#initialize,
|
|
[initializationSettings],
|
|
{
|
|
#onDidReceiveNotificationResponse:
|
|
onDidReceiveNotificationResponse,
|
|
#onDidReceiveBackgroundNotificationResponse:
|
|
onDidReceiveBackgroundNotificationResponse,
|
|
},
|
|
),
|
|
returnValue: _i4.Future<bool?>.value(),
|
|
)
|
|
as _i4.Future<bool?>);
|
|
|
|
@override
|
|
_i4.Future<_i7.NotificationAppLaunchDetails?>
|
|
getNotificationAppLaunchDetails() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getNotificationAppLaunchDetails, []),
|
|
returnValue: _i4.Future<_i7.NotificationAppLaunchDetails?>.value(),
|
|
)
|
|
as _i4.Future<_i7.NotificationAppLaunchDetails?>);
|
|
|
|
@override
|
|
_i4.Future<void> show(
|
|
int? id,
|
|
String? title,
|
|
String? body,
|
|
_i8.NotificationDetails? notificationDetails, {
|
|
String? payload,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#show,
|
|
[id, title, body, notificationDetails],
|
|
{#payload: payload},
|
|
),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
|
|
@override
|
|
_i4.Future<void> cancel(int? id, {String? tag}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#cancel, [id], {#tag: tag}),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
|
|
@override
|
|
_i4.Future<void> cancelAll() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#cancelAll, []),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
|
|
@override
|
|
_i4.Future<void> cancelAllPendingNotifications() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#cancelAllPendingNotifications, []),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
|
|
@override
|
|
_i4.Future<void> zonedSchedule(
|
|
int? id,
|
|
String? title,
|
|
String? body,
|
|
_i9.TZDateTime? scheduledDate,
|
|
_i8.NotificationDetails? notificationDetails, {
|
|
required _i10.AndroidScheduleMode? androidScheduleMode,
|
|
String? payload,
|
|
_i11.DateTimeComponents? matchDateTimeComponents,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#zonedSchedule,
|
|
[id, title, body, scheduledDate, notificationDetails],
|
|
{
|
|
#androidScheduleMode: androidScheduleMode,
|
|
#payload: payload,
|
|
#matchDateTimeComponents: matchDateTimeComponents,
|
|
},
|
|
),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
|
|
@override
|
|
_i4.Future<void> periodicallyShow(
|
|
int? id,
|
|
String? title,
|
|
String? body,
|
|
_i7.RepeatInterval? repeatInterval,
|
|
_i8.NotificationDetails? notificationDetails, {
|
|
required _i10.AndroidScheduleMode? androidScheduleMode,
|
|
String? payload,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#periodicallyShow,
|
|
[id, title, body, repeatInterval, notificationDetails],
|
|
{#androidScheduleMode: androidScheduleMode, #payload: payload},
|
|
),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
|
|
@override
|
|
_i4.Future<void> periodicallyShowWithDuration(
|
|
int? id,
|
|
String? title,
|
|
String? body,
|
|
Duration? repeatDurationInterval,
|
|
_i8.NotificationDetails? notificationDetails, {
|
|
_i10.AndroidScheduleMode? androidScheduleMode =
|
|
_i10.AndroidScheduleMode.exact,
|
|
String? payload,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#periodicallyShowWithDuration,
|
|
[id, title, body, repeatDurationInterval, notificationDetails],
|
|
{#androidScheduleMode: androidScheduleMode, #payload: payload},
|
|
),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
|
|
@override
|
|
_i4.Future<List<_i7.PendingNotificationRequest>>
|
|
pendingNotificationRequests() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#pendingNotificationRequests, []),
|
|
returnValue: _i4.Future<List<_i7.PendingNotificationRequest>>.value(
|
|
<_i7.PendingNotificationRequest>[],
|
|
),
|
|
)
|
|
as _i4.Future<List<_i7.PendingNotificationRequest>>);
|
|
|
|
@override
|
|
_i4.Future<List<_i7.ActiveNotification>> getActiveNotifications() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getActiveNotifications, []),
|
|
returnValue: _i4.Future<List<_i7.ActiveNotification>>.value(
|
|
<_i7.ActiveNotification>[],
|
|
),
|
|
)
|
|
as _i4.Future<List<_i7.ActiveNotification>>);
|
|
}
|