Changeset 9527 in josm for trunk/test/unit
- Timestamp:
- 2016-01-18T20:08:51+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/JosmUserIdentityManagerTest.groovy
r8510 r9527 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.gui; 2 package org.openstreetmap.josm.gui 3 4 import org.openstreetmap.josm.data.osm.User; 3 5 4 6 import static org.junit.Assert.* … … 50 52 assert im.getUserName() == null 51 53 assert im.getUserInfo() == null 54 assert im.asUser() == User.anonymous 52 55 } 53 56 … … 79 82 assert im.getUserName() == "test" 80 83 assert im.getUserInfo() == null 84 assert im.asUser() == new User(0, "test") 81 85 } 82 86 … … 112 116 assert im.getUserName() == "test" 113 117 assert im.getUserInfo() == userInfo 118 assert im.asUser() == new User(1, "test") 114 119 } 115 120 … … 285 290 Main.pref.put "osm-server.username", null 286 291 assert im.isAnonymous() 292 assert im.asUser() == User.anonymous 287 293 288 294 // reset it … … 293 299 assert im.isPartiallyIdentified() 294 300 assert im.getUserName() == "test2" 301 assert im.asUser() == new User(0, "test2") 295 302 296 303 Main.pref.put "osm-server.username", null … … 304 311 assert im.isPartiallyIdentified() 305 312 assert im.getUserName() == "test2" 313 assert im.asUser() == new User(0, "test2") 306 314 307 315 // reset it
Note:
See TracChangeset
for help on using the changeset viewer.