Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/actions/CreateMultipolygonActionTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/CreateMultipolygonActionTest.java
r15162 r17275 2 2 package org.openstreetmap.josm.actions; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertFalse;6 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 import static org.junit.jupiter.api.Assertions.assertTrue; 7 7 8 8 import java.nio.file.Files; … … 12 12 import java.util.TreeMap; 13 13 14 import org.junit. Rule;15 import org.junit. Test;14 import org.junit.jupiter.api.extension.RegisterExtension; 15 import org.junit.jupiter.api.Test; 16 16 import org.openstreetmap.josm.TestUtils; 17 17 import org.openstreetmap.josm.command.SequenceCommand; … … 37 37 * Unit test of {@link CreateMultipolygonAction} 38 38 */ 39 publicclass CreateMultipolygonActionTest {39 class CreateMultipolygonActionTest { 40 40 41 41 /** 42 42 * Setup test. 43 43 */ 44 @R ule44 @RegisterExtension 45 45 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 46 46 public JOSMTestRules test = new JOSMTestRules().projection().main().preferences(); … … 80 80 81 81 @Test 82 publicvoid testCreate1() throws Exception {82 void testCreate1() throws Exception { 83 83 DataSet ds = OsmReader.parseDataSet(Files.newInputStream(Paths.get(TestUtils.getTestDataRoot(), "create_multipolygon.osm")), null); 84 84 Pair<SequenceCommand, Relation> mp = CreateMultipolygonAction.createMultipolygonCommand(ds.getWays(), null); … … 88 88 89 89 @Test 90 publicvoid testCreate2() throws Exception {90 void testCreate2() throws Exception { 91 91 DataSet ds = OsmReader.parseDataSet(Files.newInputStream(Paths.get(TestUtils.getTestDataRoot(), "create_multipolygon.osm")), null); 92 92 Relation mp = createMultipolygon(ds.getWays(), "ref=1 OR ref:1.1.", null, true); … … 95 95 96 96 @Test 97 publicvoid testUpdate1() throws Exception {97 void testUpdate1() throws Exception { 98 98 DataSet ds = OsmReader.parseDataSet(Files.newInputStream(Paths.get(TestUtils.getTestDataRoot(), "create_multipolygon.osm")), null); 99 99 Relation mp = createMultipolygon(ds.getWays(), "ref=\".*1$\"", null, true); … … 106 106 107 107 @Test 108 publicvoid testUpdate2() throws Exception {108 void testUpdate2() throws Exception { 109 109 DataSet ds = OsmReader.parseDataSet(Files.newInputStream(Paths.get(TestUtils.getTestDataRoot(), "create_multipolygon.osm")), null); 110 110 Relation mp = createMultipolygon(ds.getWays(), "ref=1 OR ref:1.1.1", null, true); … … 119 119 */ 120 120 @Test 121 publicvoid testTicket17767() throws Exception {121 void testTicket17767() throws Exception { 122 122 DataSet ds = OsmReader.parseDataSet(TestUtils.getRegressionDataStream(17767, "upd-mp.osm"), null); 123 123 Layer layer = new OsmDataLayer(ds, null, null); … … 141 141 */ 142 142 @Test 143 publicvoid testTicket17768() throws Exception {143 void testTicket17768() throws Exception { 144 144 DataSet ds = OsmReader.parseDataSet(TestUtils.getRegressionDataStream(17768, "dupmem.osm"), null); 145 145 Layer layer = new OsmDataLayer(ds, null, null);
Note:
See TracChangeset
for help on using the changeset viewer.