Changeset 12812 in josm
- Timestamp:
- 2017-09-10T01:20:23+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/ChangesetTest.java
r12663 r12812 19 19 import org.openstreetmap.josm.data.Bounds; 20 20 import org.openstreetmap.josm.data.coor.LatLon; 21 import org.openstreetmap.josm.data.osm.visitor.Visitor;22 21 import org.openstreetmap.josm.testutils.JOSMTestRules; 23 22 import org.openstreetmap.josm.tools.Logging; … … 262 261 assertTrue(cs.keySet().isEmpty()); 263 262 } 264 265 private static class CsVisitor implements Visitor {266 267 boolean visited;268 269 @Override270 public void visit(Node n) {271 // Do nothing272 }273 274 @Override275 public void visit(Way w) {276 // Do nothing277 }278 279 @Override280 public void visit(Relation r) {281 // Do nothing282 }283 284 @Override285 public void visit(Changeset cs) {286 visited = true;287 }288 }289 290 /**291 * Unit test of method {@link Changeset#visit}.292 */293 @Test294 public void testVisit() {295 CsVisitor v = new CsVisitor();296 new Changeset().visit(v);297 assertTrue(v.visited);298 }299 263 } -
trunk/test/unit/org/openstreetmap/josm/data/osm/visitor/MergeSourceBuildingVisitorTest.java
r10945 r12812 12 12 import org.junit.Test; 13 13 import org.openstreetmap.josm.data.coor.LatLon; 14 import org.openstreetmap.josm.data.osm.Changeset;15 14 import org.openstreetmap.josm.data.osm.DataSet; 16 15 import org.openstreetmap.josm.data.osm.Node; … … 411 410 assertTrue(r2.getMembers().contains(new RelationMember("relation-1", r1))); 412 411 } 413 414 /**415 * Unit test of {@code AbstractVisitor#visit(org.openstreetmap.josm.data.osm.Changeset)}.416 */417 @Test418 public void testVisitChangeset() {419 new MergeSourceBuildingVisitor(new DataSet()).visit(new Changeset());420 }421 412 }
Note:
See TracChangeset
for help on using the changeset viewer.