Changeset 2569 in josm for trunk/test/functional


Ignore:
Timestamp:
2009-12-04T15:53:55+01:00 (10 years ago)
Author:
Gubaer
Message:

fixed #3684: Add "chunked" upload mode
Removed support for API "0.5" when uploading (there are still 0.5-files around, but I'm not aware of any 0.5-servers)

Location:
trunk/test/functional/org/openstreetmap/josm/io
Files:
1 added
2 edited

Legend:

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

    r2498 r2569  
    3232import org.openstreetmap.josm.data.osm.Way;
    3333import org.openstreetmap.josm.data.projection.Mercator;
     34import org.openstreetmap.josm.gui.io.UploadStrategySpecification;
    3435import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    3536
     
    124125        OsmServerWriter writer = new OsmServerWriter();
    125126        Changeset cs = new Changeset();
    126         writer.uploadOsm("0.6", primitives,cs,NullProgressMonitor.INSTANCE);
     127        writer.uploadOsm(UploadStrategySpecification.createSingleRequestUploadStrategy(), primitives,cs,NullProgressMonitor.INSTANCE);
    127128        OsmApi.getOsmApi().closeChangeset(cs, NullProgressMonitor.INSTANCE);
    128129    }
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java

    r2498 r2569  
    3333import org.openstreetmap.josm.data.osm.Way;
    3434import org.openstreetmap.josm.data.projection.Mercator;
     35import org.openstreetmap.josm.gui.io.UploadStrategySpecification;
    3536import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    3637
     
    128129        OsmServerWriter writer = new OsmServerWriter();
    129130        Changeset cs  = new Changeset();
    130         writer.uploadOsm("0.6", primitives, cs, NullProgressMonitor.INSTANCE);
     131        writer.uploadOsm(UploadStrategySpecification.createSingleRequestUploadStrategy(), primitives, cs, NullProgressMonitor.INSTANCE);
    131132        OsmApi.getOsmApi().closeChangeset(cs, NullProgressMonitor.INSTANCE);
    132133    }
Note: See TracChangeset for help on using the changeset viewer.