Changeset 10804 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java
r10467 r10804 101 101 } 102 102 } 103 newPrimitives.stream().forEach(p -> p.setModified(true)); 103 104 } else { // redo 104 105 // When redoing this command, we have to add the same objects, otherwise -
trunk/test/unit/org/openstreetmap/josm/command/AddPrimitivesCommandTest.java
r10758 r10804 4 4 import static org.junit.Assert.assertArrayEquals; 5 5 import static org.junit.Assert.assertEquals; 6 import static org.junit.Assert.assertFalse;7 6 import static org.junit.Assert.assertSame; 8 7 import static org.junit.Assert.assertTrue; … … 218 217 assertEquals(2, layer1.data.getNodes().size()); 219 218 assertEquals(1, layer1.data.getWays().size()); 220 assertEquals( 0, layer1.data.allModifiedPrimitives().size());219 assertEquals(3, layer1.data.allModifiedPrimitives().size()); 221 220 for (OsmPrimitive n : layer1.data.allPrimitives()) { 222 221 assertEquals("test", n.get("test")); 223 assert False(n.isModified());222 assertTrue(n.isModified()); 224 223 } 225 224
Note:
See TracChangeset
for help on using the changeset viewer.