Ticket #13443: patch-test-fix-user-identity-manager.patch

File patch-test-fix-user-identity-manager.patch, 1.3 KB (added by michael2402, 8 years ago)
  • test/unit/org/openstreetmap/josm/gui/JosmUserIdentityManagerTest.groovy

    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 {  
    2727        // created ?
    2828        assert im != null
    2929
    30         // registered as listener ?
    31         assert Main.pref.@listeners.contains(im)
    32 
    3330        JosmUserIdentityManager im2 = JosmUserIdentityManager.getInstance()
    3431
    3532        // only one instance
    class JosmUserIdentityManagerTest {  
    244241    public void apiUrlChanged() {
    245242        JosmUserIdentityManager im = JosmUserIdentityManager.getInstance()
    246243
    247         // make sure im is a preference change listener
    248         Main.pref.addPreferenceChangeListener im
    249 
    250244        // reset it
    251245        im.@userName = null
    252246        im.@userInfo = null
    class JosmUserIdentityManagerTest {  
    289283    public void userNameChanged() {
    290284        JosmUserIdentityManager im = JosmUserIdentityManager.getInstance()
    291285
    292         // make sure im is a preference change listener
    293         Main.pref.addPreferenceChangeListener im
    294 
    295286        // reset it
    296287        im.@userName = null
    297288        im.@userInfo = null