Changeset 9704 in josm for trunk/test


Ignore:
Timestamp:
2016-02-01T16:16:17+01:00 (9 years ago)
Author:
simon04
Message:

fix #12469 - Update overpass wizard code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/OverpassTurboQueryWizardTest.java

    r9669 r9704  
    1818    @BeforeClass
    1919    public static void setUp() {
    20         JOSMFixture.createUnitTestFixture().init(true);
     20        JOSMFixture.createUnitTestFixture().init(false);
    2121        OverpassTurboQueryWizard.getInstance();
    2222    }
     
    2929        final String query = OverpassTurboQueryWizard.getInstance().constructQuery("amenity=drinking_water");
    3030        assertEquals("" +
    31                 "[timeout:25];\n" +
    32                 "// gather results\n" +
     31                "[out:xml][timeout:25];\n" +
    3332                "(\n" +
    34                 "  // query part for: “amenity=drinking_water”\n" +
    3533                "  node[\"amenity\"=\"drinking_water\"];\n" +
    3634                "  way[\"amenity\"=\"drinking_water\"];\n" +
    3735                "  relation[\"amenity\"=\"drinking_water\"];\n" +
    3836                ");\n" +
    39                 "// print results\n" +
    40                 "out meta;\n" +
    41                 ">;\n" +
     37                "(._;>;);\n" +
    4238                "out meta;", query);
    4339    }
Note: See TracChangeset for help on using the changeset viewer.