-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Suraj Adhikari
committed
Nov 19, 2021
1 parent
0f619f4
commit 6999c74
Showing
4 changed files
with
238 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
// Mocks generated by Mockito 5.0.15 from annotations | ||
// in yonomi_device_widgets/test/components/lock_widget_test.dart. | ||
// Do not manually edit this file. | ||
|
||
import 'dart:async' as _i4; | ||
import 'dart:ui' as _i7; | ||
|
||
import 'package:mockito/mockito.dart' as _i1; | ||
import 'package:yonomi_device_widgets/providers/lock_provider.dart' as _i3; | ||
import 'package:yonomi_platform_sdk/src/repository/devices/devices_repository.dart' | ||
as _i5; | ||
import 'package:yonomi_platform_sdk/src/repository/devices/lock_repository.dart' | ||
as _i6; | ||
import 'package:yonomi_platform_sdk/yonomi-sdk.dart' as _i2; | ||
|
||
// ignore_for_file: avoid_redundant_argument_values | ||
// ignore_for_file: avoid_setters_without_getters | ||
// ignore_for_file: comment_references | ||
// ignore_for_file: implementation_imports | ||
// ignore_for_file: invalid_use_of_visible_for_testing_member | ||
// ignore_for_file: prefer_const_constructors | ||
// ignore_for_file: unnecessary_parenthesis | ||
|
||
class _FakeDevice_0 extends _i1.Fake implements _i2.Device {} | ||
|
||
/// A class which mocks [LockProvider]. | ||
/// | ||
/// See the documentation for Mockito's code generation for more information. | ||
class MockLockProvider extends _i1.Mock implements _i3.LockProvider { | ||
MockLockProvider() { | ||
_i1.throwOnMissingStub(this); | ||
} | ||
|
||
@override | ||
bool get loadingDetail => | ||
(super.noSuchMethod(Invocation.getter(#loadingDetail), returnValue: false) | ||
as bool); | ||
@override | ||
set loadingDetail(bool? _loadingDetail) => | ||
super.noSuchMethod(Invocation.setter(#loadingDetail, _loadingDetail), | ||
returnValueForMissingStub: null); | ||
@override | ||
bool get loadingAction => | ||
(super.noSuchMethod(Invocation.getter(#loadingAction), returnValue: false) | ||
as bool); | ||
@override | ||
set loadingAction(bool? _loadingAction) => | ||
super.noSuchMethod(Invocation.setter(#loadingAction, _loadingAction), | ||
returnValueForMissingStub: null); | ||
@override | ||
_i2.Device get deviceDetail => | ||
(super.noSuchMethod(Invocation.getter(#deviceDetail), | ||
returnValue: _FakeDevice_0()) as _i2.Device); | ||
@override | ||
bool get isLocked => | ||
(super.noSuchMethod(Invocation.getter(#isLocked), returnValue: false) | ||
as bool); | ||
@override | ||
bool get hasListeners => | ||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) | ||
as bool); | ||
@override | ||
_i4.Future<void> getDeviceDetail(String? deviceId, | ||
{_i3.GetLockDetailsFunction? getLockDetails = | ||
_i5.DevicesRepository.getLockDetails}) => | ||
(super.noSuchMethod( | ||
Invocation.method( | ||
#getDeviceDetail, [deviceId], {#getLockDetails: getLockDetails}), | ||
returnValue: Future<void>.value(), | ||
returnValueForMissingStub: Future<void>.value()) as _i4.Future<void>); | ||
@override | ||
_i4.Future<void> setLockUnlockAction(String? deviceId, bool? setLock, | ||
{_i3.GetLockDetailsFunction? lockDetails = | ||
_i5.DevicesRepository.getLockDetails, | ||
_i3.SendLockUnlockFunction? sendLockUnlock = | ||
_i6.LockRepository.sendLockUnlockAction}) => | ||
(super.noSuchMethod( | ||
Invocation.method(#setLockUnlockAction, [deviceId, setLock], | ||
{#lockDetails: lockDetails, #sendLockUnlock: sendLockUnlock}), | ||
returnValue: Future<void>.value(), | ||
returnValueForMissingStub: Future<void>.value()) as _i4.Future<void>); | ||
@override | ||
void addListener(_i7.VoidCallback? listener) => | ||
super.noSuchMethod(Invocation.method(#addListener, [listener]), | ||
returnValueForMissingStub: null); | ||
@override | ||
void removeListener(_i7.VoidCallback? listener) => | ||
super.noSuchMethod(Invocation.method(#removeListener, [listener]), | ||
returnValueForMissingStub: null); | ||
@override | ||
void dispose() => super.noSuchMethod(Invocation.method(#dispose, []), | ||
returnValueForMissingStub: null); | ||
@override | ||
void notifyListeners() => | ||
super.noSuchMethod(Invocation.method(#notifyListeners, []), | ||
returnValueForMissingStub: null); | ||
@override | ||
String toString() => super.toString(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// Mocks generated by Mockito 5.0.15 from annotations | ||
// in yonomi_device_widgets/test/components/modes_toolbar_test.dart. | ||
// Do not manually edit this file. | ||
|
||
import 'dart:async' as _i3; | ||
import 'dart:ui' as _i7; | ||
|
||
import 'package:mockito/mockito.dart' as _i1; | ||
import 'package:yonomi_device_widgets/providers/thermostat_provider.dart' | ||
as _i2; | ||
import 'package:yonomi_platform_sdk/src/repository/devices/devices_repository.dart' | ||
as _i6; | ||
import 'package:yonomi_platform_sdk/src/repository/devices/thermostat_repository.dart' | ||
as _i4; | ||
import 'package:yonomi_platform_sdk/third_party/yonomi_graphql_schema/schema.docs.schema.gql.dart' | ||
as _i5; | ||
|
||
// ignore_for_file: avoid_redundant_argument_values | ||
// ignore_for_file: avoid_setters_without_getters | ||
// ignore_for_file: comment_references | ||
// ignore_for_file: implementation_imports | ||
// ignore_for_file: invalid_use_of_visible_for_testing_member | ||
// ignore_for_file: prefer_const_constructors | ||
// ignore_for_file: unnecessary_parenthesis | ||
|
||
/// A class which mocks [ThermostatProvider]. | ||
/// | ||
/// See the documentation for Mockito's code generation for more information. | ||
class MockThermostatProvider extends _i1.Mock | ||
implements _i2.ThermostatProvider { | ||
MockThermostatProvider() { | ||
_i1.throwOnMissingStub(this); | ||
} | ||
|
||
@override | ||
double get thermostatTargetTemperature => | ||
(super.noSuchMethod(Invocation.getter(#thermostatTargetTemperature), | ||
returnValue: 0.0) as double); | ||
@override | ||
bool get hasListeners => | ||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) | ||
as bool); | ||
@override | ||
_i3.Future<void> setPointAction(String? deviceId, double? temperature, | ||
{_i2.SetPointActionFunction? setPoint = | ||
_i4.ThermostatRepository.setPointThermostat}) => | ||
(super.noSuchMethod( | ||
Invocation.method( | ||
#setPointAction, [deviceId, temperature], {#setPoint: setPoint}), | ||
returnValue: Future<void>.value(), | ||
returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>); | ||
@override | ||
_i3.Future<void> setThermostatMode( | ||
String? deviceId, _i5.GThermostatMode? mode, | ||
{_i2.SetModeFunction? setMode = _i4.ThermostatRepository.setMode}) => | ||
(super.noSuchMethod( | ||
Invocation.method( | ||
#setThermostatMode, [deviceId, mode], {#setMode: setMode}), | ||
returnValue: Future<void>.value(), | ||
returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>); | ||
@override | ||
_i3.Future<void> getDeviceDetail(String? deviceId, | ||
{_i2.GetThermostatDetailsFunction? getThermostatDetails = | ||
_i6.DevicesRepository.getThermostatDetails}) => | ||
(super.noSuchMethod( | ||
Invocation.method(#getDeviceDetail, [deviceId], | ||
{#getThermostatDetails: getThermostatDetails}), | ||
returnValue: Future<void>.value(), | ||
returnValueForMissingStub: Future<void>.value()) as _i3.Future<void>); | ||
@override | ||
void addListener(_i7.VoidCallback? listener) => | ||
super.noSuchMethod(Invocation.method(#addListener, [listener]), | ||
returnValueForMissingStub: null); | ||
@override | ||
void removeListener(_i7.VoidCallback? listener) => | ||
super.noSuchMethod(Invocation.method(#removeListener, [listener]), | ||
returnValueForMissingStub: null); | ||
@override | ||
void dispose() => super.noSuchMethod(Invocation.method(#dispose, []), | ||
returnValueForMissingStub: null); | ||
@override | ||
void notifyListeners() => | ||
super.noSuchMethod(Invocation.method(#notifyListeners, []), | ||
returnValueForMissingStub: null); | ||
@override | ||
String toString() => super.toString(); | ||
} |