Changeset 15704 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2020-01-13T23:28:16+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/CrossingWaysTest.java
r14813 r15704 17 17 import org.openstreetmap.josm.data.osm.Way; 18 18 import org.openstreetmap.josm.data.osm.WaySegment; 19 import org.openstreetmap.josm.data.validation.tests.CrossingWays.Barrier;20 19 import org.openstreetmap.josm.data.validation.tests.CrossingWays.Boundaries; 21 20 import org.openstreetmap.josm.data.validation.tests.CrossingWays.SelfCrossing; … … 144 143 testMessage(650, test, "waterway=river", "waterway=river"); 145 144 testMessage(651, test, "waterway=river", "amenity=restaurant"); 145 testMessage(603, test, "barrier=hedge", "barrier=yes"); 146 testMessage(661, test, "barrier=hedge", "building=yes"); 147 testMessage(662, test, "barrier=hedge", "highway=road"); 148 testMessage(663, test, "barrier=hedge", "railway=rail"); 149 testMessage(664, test, "barrier=hedge", "waterway=river"); 150 151 assertFalse(test.isPrimitiveUsable(newUsableWay("amenity=restaurant"))); 152 assertFalse(test.isPrimitiveUsable(TestUtils.newWay("barrier=yes"))); // Unusable (0 node) 153 assertTrue(test.isPrimitiveUsable(newUsableWay("barrier=yes"))); // Usable (2 nodes) 154 146 155 } 147 156 … … 161 170 162 171 /** 163 * Unit test of {@link CrossingWays.Barrier}164 */165 @Test166 public void testBarrier() {167 Barrier test = new CrossingWays.Barrier();168 // isPrimitiveUsable169 assertFalse(test.isPrimitiveUsable(newUsableWay("amenity=restaurant")));170 assertFalse(test.isPrimitiveUsable(TestUtils.newWay("barrier=yes"))); // Unusable (0 node)171 assertTrue(test.isPrimitiveUsable(newUsableWay("barrier=yes"))); // Usable (2 nodes)172 }173 174 /**175 172 * Unit test of {@link CrossingWays.SelfCrossing} 176 173 */
Note:
See TracChangeset
for help on using the changeset viewer.