Last change
on this file since 17413 was 17413, checked in by GerdP, 3 years ago |
see #20019: Warn about direction=forward/backward on invalid nodes.
- revert changes in DirectionNodes.java from 17412
- improve test coverage (nodes with positive ids)
|
File size:
984 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.validation.tests;
|
---|
3 |
|
---|
4 | import org.junit.jupiter.api.Test;
|
---|
5 | import org.junit.jupiter.api.extension.RegisterExtension;
|
---|
6 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
7 |
|
---|
8 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * JUnit Test of Multipolygon validation test.
|
---|
12 | */
|
---|
13 | class DirectionNodesTest {
|
---|
14 |
|
---|
15 |
|
---|
16 | /**
|
---|
17 | * Setup test.
|
---|
18 | */
|
---|
19 | @RegisterExtension
|
---|
20 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
21 | public JOSMTestRules test = new JOSMTestRules();
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * Test all error cases manually created in direction-nodes.osm.
|
---|
25 | * @throws Exception in case of error
|
---|
26 | */
|
---|
27 | @Test
|
---|
28 | void testDirectionsNodesTestFile() throws Exception {
|
---|
29 | final DirectionNodes test = new DirectionNodes();
|
---|
30 | ValidatorTestUtils.testSampleFile("nodist/data/direction-nodes.osm", ds -> ds.getNodes(), null, test);
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.