Changeset 2448 in josm for trunk/test/functional/org
- Timestamp:
- 2009-11-14T17:59:10+01:00 (15 years ago)
- Location:
- trunk/test/functional/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/history/HistoryBrowserTest.java
r1813 r2448 16 16 import org.openstreetmap.josm.Main; 17 17 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 18 import org.openstreetmap.josm.data.osm.SimplePrimitiveId; 18 19 import org.openstreetmap.josm.data.osm.history.History; 19 20 import org.openstreetmap.josm.data.osm.history.HistoryDataSet; … … 78 79 return; 79 80 } 80 History h = ds.getHistory( id);81 History h = ds.getHistory(new SimplePrimitiveId(id, type)); 81 82 browser.populate(h); 82 83 } -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerHistoryReaderTest.java
r1813 r2448 22 22 OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.NODE,266187); 23 23 HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE); 24 History h = ds.getHistory(266187 );24 History h = ds.getHistory(266187, OsmPrimitiveType.NODE); 25 25 System.out.println("num versions: " + h.getNumVersions()); 26 26 } … … 30 30 OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.WAY,32916); 31 31 HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE); 32 History h = ds.getHistory(32916 );32 History h = ds.getHistory(32916, OsmPrimitiveType.WAY); 33 33 System.out.println("num versions: " + h.getNumVersions()); 34 34 } … … 38 38 OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.RELATION,49); 39 39 HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE); 40 History h = ds.getHistory(49 );40 History h = ds.getHistory(49, OsmPrimitiveType.RELATION); 41 41 System.out.println("num versions: " + h.getNumVersions()); 42 42 }
Note:
See TracChangeset
for help on using the changeset viewer.