- Timestamp:
- 2007-01-14T05:00:46+01:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/org/openstreetmap/josm/data/osm/visitor/MergeVisitorTest.java
r187 r197 1 1 package org.openstreetmap.josm.data.osm.visitor; 2 2 3 import java.util.Arrays; 3 4 import java.util.Date; 4 5 … … 41 42 } 42 43 44 private Way createWay(long id, Date timestamp, Segment... segments) { 45 Way w = new Way(); 46 w.id = id; 47 w.segments.addAll(Arrays.asList(segments)); 48 w.timestamp = timestamp; 49 return w; 50 } 43 51 44 52 /** … … 307 315 } 308 316 317 public void testMergeIncompleteSegmentsAddToDataSet() throws Exception { 318 DataSet ds = new DataSet(); 319 MergeVisitor v = new MergeVisitor(ds); 320 v.visit(createSegment(null, true, false, 1)); 321 assertEquals(1, ds.segments.size()); 322 } 323 309 324 }
Note:
See TracChangeset
for help on using the changeset viewer.