Ignore:
Timestamp:
2015-07-06T23:24:31+02:00 (10 years ago)
Author:
floscher
Message:

Test downloading of sequences in a given bbox

The new testcase starts the MapillarySequenceDownloadThread, waits until it's finished. Then it checks, if images were added to the MapillaryLayer. We can assume, that there are images in the given rectangle, as currently there are several images uploaded there.
This change required quite extensive changes, as the tests are run in headless mode and so the GUI must not be started. TestUtil is built along the lines of JosmFixture from josm-core, but trimmed a lot.

Location:
applications/editors/josm/plugins/mapillary/test
Files:
5 added
1 moved

Legend:

Unmodified
Added
Removed
  • TabularUnified applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/ImportedImageTest.java

    r31346 r31347  
    11package org.openstreetmap.josm.plugins.mapillary;
    2 
    3 import static org.junit.Assert.*;
    42
    53import java.io.IOException;
     
    86import org.junit.Test;
    97
    10 public class ImportTest {
     8public class ImportedImageTest {
    119
    1210        @Before
     
    1816
    1917    @Test(expected=IllegalArgumentException.class)
    20     public void test() throws IOException {
     18    public void testNullFile() throws IOException {
    2119        MapillaryImportedImage img = new MapillaryImportedImage(0,0,0, null);
    2220        img.getImage();
    2321    }
    24 
    2522}
Note: See TracChangeset for help on using the changeset viewer.