source: josm/trunk/test/unit/org/openstreetmap/josm/data/validation/tests/CoastlinesTest.java@ 16006

Last change on this file since 16006 was 16006, checked in by Don-vip, 4 years ago

see #18140 - reorganization of data(_nodist), images(_nodist), styles(_nodist), IDE and native files in a more practical file tree.

  • Everything belonging to the jar is now in resources (data, images, styles)
  • Everything not belonging to the jar is now in nodist (data, images, styles)
  • Everything related to OS native functions is now in native (linux, macosx, windows)
  • Everything related to an IDE is now in ide (eclipse, netbeans)
  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.validation.tests;
3
4import java.util.stream.Collectors;
5
6import org.junit.Rule;
7import org.junit.Test;
8import org.openstreetmap.josm.testutils.JOSMTestRules;
9
10import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
11
12/**
13 * JUnit Test of {@link Coastlines} validation test.
14 */
15public class CoastlinesTest {
16
17 private static final Coastlines COASTLINES = new Coastlines();
18 private static final WronglyOrderedWays WRONGLY_ORDERED_WAYS = new WronglyOrderedWays();
19
20 /**
21 * Setup test.
22 */
23 @Rule
24 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
25 public JOSMTestRules test = new JOSMTestRules();
26
27 /**
28 * Test all error cases manually created in coastline.osm.
29 * @throws Exception in case of error
30 */
31 @Test
32 public void testCoastlineFile() throws Exception {
33 ValidatorTestUtils.testSampleFile("nodist/data/coastlines.osm",
34 ds -> ds.getWays().stream().filter(
35 w -> "coastline".equals(w.get("natural"))).collect(Collectors.toList()),
36 null, COASTLINES, WRONGLY_ORDERED_WAYS);
37 }
38}
Note: See TracBrowser for help on using the repository browser.