- Timestamp:
- 2017-09-06T02:14:12+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/DataSetMergerTest.java
r11035 r12750 45 45 @Before 46 46 public void setUp() { 47 User.clearUserMap();48 47 my = new DataSet(); 49 48 my.setVersion("0.6"); -
trunk/test/unit/org/openstreetmap/josm/data/osm/UserTest.java
r11911 r12750 29 29 @Test 30 30 public void testCreateOsmUser() { 31 try { 32 User user1 = User.createOsmUser(1, "name1"); 33 assertEquals(1, user1.getId()); 34 assertEquals("name1", user1.getName()); 35 User user2 = User.createOsmUser(1, "name2"); 36 assertSame(user1, user2); 37 assertEquals(1, user2.getId()); 38 assertEquals("name2", user2.getName()); 39 assertEquals(2, user2.getNames().size()); 40 assertTrue(user2.getNames().contains("name1")); 41 assertTrue(user2.getNames().contains("name2")); 42 } finally { 43 User.clearUserMap(); 44 } 31 User user1 = User.createOsmUser(1, "name1"); 32 assertEquals(1, user1.getId()); 33 assertEquals("name1", user1.getName()); 34 User user2 = User.createOsmUser(1, "name2"); 35 assertSame(user1, user2); 36 assertEquals(1, user2.getId()); 37 assertEquals("name2", user2.getName()); 38 assertEquals(2, user2.getNames().size()); 39 assertTrue(user2.getNames().contains("name1")); 40 assertTrue(user2.getNames().contains("name2")); 45 41 } 46 42 } -
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r12747 r12750 16 16 import org.openstreetmap.josm.Main; 17 17 import org.openstreetmap.josm.data.UserIdentityManager; 18 import org.openstreetmap.josm.data.osm.User; 18 19 import org.openstreetmap.josm.data.osm.event.SelectionEventManager; 19 20 import org.openstreetmap.josm.data.projection.Projections; … … 267 268 // Assume anonymous user 268 269 UserIdentityManager.getInstance().setAnonymous(); 270 User.clearUserMap(); 269 271 270 272 // Set up i18n
Note:
See TracChangeset
for help on using the changeset viewer.