@@ -5,19 +5,19 @@ import 'package:easy_shared_preferences/easy_shared_preferences.dart';
55void main () {
66 // Set up Flutter test environment
77 TestWidgetsFlutterBinding .ensureInitialized ();
8-
8+
99 group ('Settings Framework Tests' , () {
10- late Settings appSettings;
10+ late EasySettings appSettings;
1111 late SettingsStore store;
12-
12+
1313 setUp (() async {
1414 // Clear SharedPreferences before each test using the simpler mock approach
1515 // This is compatible with both SharedPreferences and SharedPreferencesWithCache
1616 SharedPreferences .setMockInitialValues ({});
1717
1818 // Create fresh instances for each test
1919 store = SettingsStore (forceRegularSharedPreferences: true );
20- appSettings = Settings (store: store);
20+ appSettings = EasySettings (store: store);
2121 });
2222
2323 tearDown (() async {
@@ -560,8 +560,8 @@ void main() {
560560
561561 // Create new Settings instance and store for second initialization
562562 final newStore = SettingsStore (forceRegularSharedPreferences: true );
563- final newSettings = Settings (store: newStore);
564-
563+ final newSettings = EasySettings (store: newStore);
564+
565565 // Second initialization with same structure
566566 final settings2 = SettingsGroup .forTesting (
567567 key: 'persist-test' ,
@@ -969,8 +969,8 @@ void main() {
969969
970970 // Create new Settings instance and store
971971 final newStore = SettingsStore (forceRegularSharedPreferences: true );
972- final newSettings = Settings (store: newStore);
973-
972+ final newSettings = EasySettings (store: newStore);
973+
974974 // Create new instance with same key structure
975975 final settings2 = SettingsGroup .forTesting (
976976 key: 'persist' ,
@@ -986,7 +986,7 @@ void main() {
986986 // Values should be persisted
987987 expect (newSettings.getBool ('persist.flag' ), isTrue);
988988 expect (newSettings.getString ('persist.text' ), equals ('persisted' ));
989-
989+
990990 // Clean up
991991 newSettings.dispose ();
992992 });
@@ -1006,8 +1006,8 @@ void main() {
10061006
10071007 // Create new Settings instance and store
10081008 final newStore = SettingsStore (forceRegularSharedPreferences: true );
1009- final newSettings = Settings (store: newStore);
1010-
1009+ final newSettings = EasySettings (store: newStore);
1010+
10111011 // Create expanded settings with new setting
10121012 final expandedSettings = SettingsGroup .forTesting (
10131013 key: 'expand' ,
@@ -1025,7 +1025,7 @@ void main() {
10251025
10261026 // New setting should use default
10271027 expect (newSettings.getInt ('expand.newSetting' ), equals (42 ));
1028-
1028+
10291029 // Clean up
10301030 newSettings.dispose ();
10311031 });
0 commit comments