Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/actions/corrector
- Timestamp:
- 2020-10-28T20:41:00+01:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/actions/corrector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/corrector/ReverseWayNoTagCorrectorTest.java
r17023 r17275 2 2 package org.openstreetmap.josm.actions.corrector; 3 3 4 import static org.junit. Assert.assertEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 import org.junit. Rule;7 import org.junit. Test;6 import org.junit.jupiter.api.extension.RegisterExtension; 7 import org.junit.jupiter.api.Test; 8 8 import org.openstreetmap.josm.data.osm.Tag; 9 9 import org.openstreetmap.josm.data.osm.Tagged; … … 16 16 * Unit tests of {@link ReverseWayNoTagCorrector} class. 17 17 */ 18 publicclass ReverseWayNoTagCorrectorTest {18 class ReverseWayNoTagCorrectorTest { 19 19 20 20 /** 21 21 * Setup test. 22 22 */ 23 @R ule23 @RegisterExtension 24 24 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 25 25 public JOSMTestRules test = new JOSMTestRules(); … … 29 29 */ 30 30 @Test 31 publicvoid testDirectionalTags() {31 void testDirectionalTags() { 32 32 assertEquals(1, ReverseWayNoTagCorrector.getDirectionalTags(new Tag("waterway", "drain")).size()); 33 33 assertEquals(1, ReverseWayNoTagCorrector.getDirectionalTags(new Tag("man_made", "embankment")).size()); -
trunk/test/unit/org/openstreetmap/josm/actions/corrector/ReverseWayTagCorrectorTest.java
r16771 r17275 8 8 9 9 import org.junit.Assert; 10 import org.junit. Rule;11 import org.junit. Test;10 import org.junit.jupiter.api.extension.RegisterExtension; 11 import org.junit.jupiter.api.Test; 12 12 import org.openstreetmap.josm.data.correction.TagCorrection; 13 13 import org.openstreetmap.josm.data.osm.Node; … … 24 24 * Unit tests of {@link ReverseWayTagCorrector} class. 25 25 */ 26 publicclass ReverseWayTagCorrectorTest {26 class ReverseWayTagCorrectorTest { 27 27 28 28 /** 29 29 * Setup test. 30 30 */ 31 @R ule31 @RegisterExtension 32 32 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 33 33 public JOSMTestRules test = new JOSMTestRules(); … … 38 38 */ 39 39 @Test 40 publicvoid testUtilityClass() throws ReflectiveOperationException {40 void testUtilityClass() throws ReflectiveOperationException { 41 41 UtilityClassTestUtil.assertUtilityClassWellDefined(ReverseWayTagCorrector.TagSwitcher.class); 42 42 } … … 46 46 */ 47 47 @Test 48 publicvoid testTagSwitch() {48 void testTagSwitch() { 49 49 // oneway 50 50 assertSwitch(new Tag("oneway", "yes"), new Tag("oneway", "-1")); … … 121 121 */ 122 122 @Test 123 publicvoid testSwitchingWayNodes() {123 void testSwitchingWayNodes() { 124 124 final Map<OsmPrimitive, List<TagCorrection>> tagCorrections = getTagCorrectionsForWay("direction=forward"); 125 125 Assert.assertEquals(1, tagCorrections.size()); … … 132 132 */ 133 133 @Test 134 publicvoid testNotSwitchingWayNodes() {134 void testNotSwitchingWayNodes() { 135 135 Assert.assertEquals(0, getTagCorrectionsForWay("direction=SSW").size()); 136 136 Assert.assertEquals(0, getTagCorrectionsForWay("direction=145").size());
Note:
See TracChangeset
for help on using the changeset viewer.