@@ -142,7 +142,7 @@ public void testLong() {
142142 }
143143
144144 /**
145- * Tests {@link PrefService#putMap (Class, Map, String )} and
145+ * Tests {@link PrefService#put (Class, String, Map )} and
146146 * {@link PrefService#getMap(Class, String)}.
147147 */
148148 @ Test
@@ -153,25 +153,25 @@ public void testMap() {
153153 map .put ("2" , "C" );
154154 map .put ("3" , "D" );
155155 map .put ("5" , "f" );
156- final String mapKey = "MapKey" ;
157- prefService .putMap (getClass (), map , mapKey );
158- final Map <String , String > result = prefService .getMap (getClass (), mapKey );
156+ final String mapName = "MapKey" ;
157+ prefService .put (getClass (), mapName , map );
158+ final Map <String , String > result = prefService .getMap (getClass (), mapName );
159159 assertEquals (map , result );
160160 }
161161
162162 /**
163- * Tests {@link PrefService#putList (Class, List, String )} and
163+ * Tests {@link PrefService#put (Class, String, List )} and
164164 * {@link PrefService#getList(Class, String)}.
165165 */
166166 @ Test
167167 public void testList () {
168- final String recentFilesKey = "RecentFiles" ;
168+ final String recentFilesName = "RecentFiles" ;
169169 final List <String > recentFiles = new ArrayList <>();
170170 recentFiles .add ("some/path1" );
171171 recentFiles .add ("some/path2" );
172172 recentFiles .add ("some/path3" );
173- prefService .putList (getClass (), recentFiles , recentFilesKey );
174- final List <String > result = prefService .getList (getClass (), recentFilesKey );
173+ prefService .put (getClass (), recentFilesName , recentFiles );
174+ final List <String > result = prefService .getList (getClass (), recentFilesName );
175175 assertEquals (recentFiles , result );
176176 }
177177
@@ -190,8 +190,8 @@ public void testLongKeys() {
190190 "zyxwvutsrqponmlkjihgfedcba" ;
191191 final String lyrics =
192192 "Now I know my ABC's. Next time won't you sing with me?" ;
193- prefService .put (longKey , lyrics );
194- final String recovered = prefService .get (longKey );
193+ prefService .put (getClass (), longKey , lyrics );
194+ final String recovered = prefService .get (getClass (), longKey );
195195 assertEquals (lyrics , recovered );
196196 }
197197
0 commit comments