diff --git a/test/unit/org/openstreetmap/josm/gui/JosmUserIdentityManagerTest.groovy b/test/unit/org/openstreetmap/josm/gui/JosmUserIdentityManagerTest.groovy
index 523941e..90df07b 100644
a
|
b
|
class JosmUserIdentityManagerTest {
|
27 | 27 | // created ? |
28 | 28 | assert im != null |
29 | 29 | |
30 | | // registered as listener ? |
31 | | assert Main.pref.@listeners.contains(im) |
32 | | |
33 | 30 | JosmUserIdentityManager im2 = JosmUserIdentityManager.getInstance() |
34 | 31 | |
35 | 32 | // only one instance |
… |
… |
class JosmUserIdentityManagerTest {
|
244 | 241 | public void apiUrlChanged() { |
245 | 242 | JosmUserIdentityManager im = JosmUserIdentityManager.getInstance() |
246 | 243 | |
247 | | // make sure im is a preference change listener |
248 | | Main.pref.addPreferenceChangeListener im |
249 | | |
250 | 244 | // reset it |
251 | 245 | im.@userName = null |
252 | 246 | im.@userInfo = null |
… |
… |
class JosmUserIdentityManagerTest {
|
289 | 283 | public void userNameChanged() { |
290 | 284 | JosmUserIdentityManager im = JosmUserIdentityManager.getInstance() |
291 | 285 | |
292 | | // make sure im is a preference change listener |
293 | | Main.pref.addPreferenceChangeListener im |
294 | | |
295 | 286 | // reset it |
296 | 287 | im.@userName = null |
297 | 288 | im.@userInfo = null |