Changeset 12731 in josm


Ignore:
Timestamp:
2017-09-05T01:54:50+02:00 (7 years ago)
Author:
Don-vip
Message:

see #13036 - execute commands in CreateMultipolygonActionTest when relation is reused. Does not fix one of the tests, don't know why

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/CreateMultipolygonActionTest.java

    r12726 r12731  
    8383        DataSet ds = OsmReader.parseDataSet(new FileInputStream(TestUtils.getTestDataRoot() + "create_multipolygon.osm"), null);
    8484        Pair<SequenceCommand, Relation> mp = createMultipolygonCommand(ds.getWays(), "ref=\".*1$\"", null);
     85        mp.a.executeCommand();
    8586        assertEquals(3, mp.b.getMembersCount());
    8687        assertEquals("{1=outer, 1.1=inner, 1.1.1=outer}", getRefToRoleMap(mp.b).toString());
     
    9495        DataSet ds = OsmReader.parseDataSet(new FileInputStream(TestUtils.getTestDataRoot() + "create_multipolygon.osm"), null);
    9596        Pair<SequenceCommand, Relation> mp = createMultipolygonCommand(ds.getWays(), "ref=1 OR ref:1.1.1", null);
     97        mp.a.executeCommand();
    9698        assertEquals("{1=outer, 1.1.1=inner}", getRefToRoleMap(mp.b).toString());
    9799        Pair<SequenceCommand, Relation> mp2 = createMultipolygonCommand(ds.getWays(), "ref=1.1 OR ref=1.2 OR ref=1.1.2", mp.b);
Note: See TracChangeset for help on using the changeset viewer.