Ignore:
Timestamp:
2009-11-14T17:59:10+01:00 (11 years ago)
Author:
Gubaer
Message:

fixed #3352: History doesn't get invalidated on upload?
fixed #3912: Extend history dialog to contain the currently modified version
new: zoom to node in list of nodes in history dialog (popup menu)
new: load history of node from node list in history dialog (popup menu or double click)
fixed: close all history dialogs when the number of layers drop to 0
fixed: implemented equals() and hashCode() on SimplePrimitiveId
fixed: history features now usePrimitiveId instead of long.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerHistoryReaderTest.java

    r1813 r2448  
    2222        OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.NODE,266187);
    2323        HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE);
    24         History h = ds.getHistory(266187);
     24        History h = ds.getHistory(266187, OsmPrimitiveType.NODE);
    2525        System.out.println("num versions: " + h.getNumVersions());
    2626    }
     
    3030        OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.WAY,32916);
    3131        HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE);
    32         History h = ds.getHistory(32916);
     32        History h = ds.getHistory(32916, OsmPrimitiveType.WAY);
    3333        System.out.println("num versions: " + h.getNumVersions());
    3434    }
     
    3838        OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.RELATION,49);
    3939        HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE);
    40         History h = ds.getHistory(49);
     40        History h = ds.getHistory(49, OsmPrimitiveType.RELATION);
    4141        System.out.println("num versions: " + h.getNumVersions());
    4242    }
Note: See TracChangeset for help on using the changeset viewer.