Files
bowlingManager/mobile/test/integration/notification_service_integration_test.mocks.dart
T
2025-08-09 03:09:17 +09:00

268 lines
8.9 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 _i3;
import 'package:flutter_local_notifications/src/flutter_local_notifications_plugin.dart'
as _i4;
import 'package:flutter_local_notifications/src/initialization_settings.dart'
as _i5;
import 'package:flutter_local_notifications/src/notification_details.dart'
as _i7;
import 'package:flutter_local_notifications/src/platform_specifics/android/schedule_mode.dart'
as _i9;
import 'package:flutter_local_notifications/src/types.dart' as _i10;
import 'package:flutter_local_notifications_platform_interface/flutter_local_notifications_platform_interface.dart'
as _i6;
import 'package:lanebow/services/api_service.dart' as _i2;
import 'package:mockito/mockito.dart' as _i1;
import 'package:timezone/timezone.dart' as _i8;
// 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 setToken(String? token) => super.noSuchMethod(
Invocation.method(#setToken, [token]),
returnValueForMissingStub: null,
);
@override
_i3.Future<dynamic> get(
String? path, {
Map<String, dynamic>? queryParameters,
}) =>
(super.noSuchMethod(
Invocation.method(
#get,
[path],
{#queryParameters: queryParameters},
),
returnValue: _i3.Future<dynamic>.value(),
)
as _i3.Future<dynamic>);
@override
_i3.Future<dynamic> post(String? path, {dynamic data}) =>
(super.noSuchMethod(
Invocation.method(#post, [path], {#data: data}),
returnValue: _i3.Future<dynamic>.value(),
)
as _i3.Future<dynamic>);
@override
_i3.Future<dynamic> put(String? path, {dynamic data}) =>
(super.noSuchMethod(
Invocation.method(#put, [path], {#data: data}),
returnValue: _i3.Future<dynamic>.value(),
)
as _i3.Future<dynamic>);
@override
_i3.Future<dynamic> delete(String? path) =>
(super.noSuchMethod(
Invocation.method(#delete, [path]),
returnValue: _i3.Future<dynamic>.value(),
)
as _i3.Future<dynamic>);
}
/// A class which mocks [FlutterLocalNotificationsPlugin].
///
/// See the documentation for Mockito's code generation for more information.
class MockFlutterLocalNotificationsPlugin extends _i1.Mock
implements _i4.FlutterLocalNotificationsPlugin {
MockFlutterLocalNotificationsPlugin() {
_i1.throwOnMissingStub(this);
}
@override
_i3.Future<bool?> initialize(
_i5.InitializationSettings? initializationSettings, {
_i6.DidReceiveNotificationResponseCallback?
onDidReceiveNotificationResponse,
_i6.DidReceiveBackgroundNotificationResponseCallback?
onDidReceiveBackgroundNotificationResponse,
}) =>
(super.noSuchMethod(
Invocation.method(
#initialize,
[initializationSettings],
{
#onDidReceiveNotificationResponse:
onDidReceiveNotificationResponse,
#onDidReceiveBackgroundNotificationResponse:
onDidReceiveBackgroundNotificationResponse,
},
),
returnValue: _i3.Future<bool?>.value(),
)
as _i3.Future<bool?>);
@override
_i3.Future<_i6.NotificationAppLaunchDetails?>
getNotificationAppLaunchDetails() =>
(super.noSuchMethod(
Invocation.method(#getNotificationAppLaunchDetails, []),
returnValue: _i3.Future<_i6.NotificationAppLaunchDetails?>.value(),
)
as _i3.Future<_i6.NotificationAppLaunchDetails?>);
@override
_i3.Future<void> show(
int? id,
String? title,
String? body,
_i7.NotificationDetails? notificationDetails, {
String? payload,
}) =>
(super.noSuchMethod(
Invocation.method(
#show,
[id, title, body, notificationDetails],
{#payload: payload},
),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
)
as _i3.Future<void>);
@override
_i3.Future<void> cancel(int? id, {String? tag}) =>
(super.noSuchMethod(
Invocation.method(#cancel, [id], {#tag: tag}),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
)
as _i3.Future<void>);
@override
_i3.Future<void> cancelAll() =>
(super.noSuchMethod(
Invocation.method(#cancelAll, []),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
)
as _i3.Future<void>);
@override
_i3.Future<void> cancelAllPendingNotifications() =>
(super.noSuchMethod(
Invocation.method(#cancelAllPendingNotifications, []),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
)
as _i3.Future<void>);
@override
_i3.Future<void> zonedSchedule(
int? id,
String? title,
String? body,
_i8.TZDateTime? scheduledDate,
_i7.NotificationDetails? notificationDetails, {
required _i9.AndroidScheduleMode? androidScheduleMode,
String? payload,
_i10.DateTimeComponents? matchDateTimeComponents,
}) =>
(super.noSuchMethod(
Invocation.method(
#zonedSchedule,
[id, title, body, scheduledDate, notificationDetails],
{
#androidScheduleMode: androidScheduleMode,
#payload: payload,
#matchDateTimeComponents: matchDateTimeComponents,
},
),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
)
as _i3.Future<void>);
@override
_i3.Future<void> periodicallyShow(
int? id,
String? title,
String? body,
_i6.RepeatInterval? repeatInterval,
_i7.NotificationDetails? notificationDetails, {
required _i9.AndroidScheduleMode? androidScheduleMode,
String? payload,
}) =>
(super.noSuchMethod(
Invocation.method(
#periodicallyShow,
[id, title, body, repeatInterval, notificationDetails],
{#androidScheduleMode: androidScheduleMode, #payload: payload},
),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
)
as _i3.Future<void>);
@override
_i3.Future<void> periodicallyShowWithDuration(
int? id,
String? title,
String? body,
Duration? repeatDurationInterval,
_i7.NotificationDetails? notificationDetails, {
_i9.AndroidScheduleMode? androidScheduleMode =
_i9.AndroidScheduleMode.exact,
String? payload,
}) =>
(super.noSuchMethod(
Invocation.method(
#periodicallyShowWithDuration,
[id, title, body, repeatDurationInterval, notificationDetails],
{#androidScheduleMode: androidScheduleMode, #payload: payload},
),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
)
as _i3.Future<void>);
@override
_i3.Future<List<_i6.PendingNotificationRequest>>
pendingNotificationRequests() =>
(super.noSuchMethod(
Invocation.method(#pendingNotificationRequests, []),
returnValue: _i3.Future<List<_i6.PendingNotificationRequest>>.value(
<_i6.PendingNotificationRequest>[],
),
)
as _i3.Future<List<_i6.PendingNotificationRequest>>);
@override
_i3.Future<List<_i6.ActiveNotification>> getActiveNotifications() =>
(super.noSuchMethod(
Invocation.method(#getActiveNotifications, []),
returnValue: _i3.Future<List<_i6.ActiveNotification>>.value(
<_i6.ActiveNotification>[],
),
)
as _i3.Future<List<_i6.ActiveNotification>>);
}