Changeset 14484 in josm for trunk/test/unit
- Timestamp:
- 2018-12-02T02:32:13+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r14481 r14484 52 52 @Rule 53 53 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 54 public JOSMTestRules test = new JOSMTestRules().projection() ;54 public JOSMTestRules test = new JOSMTestRules().projection().territories(); 55 55 56 56 static MapCSSTagChecker buildTagChecker(String css) throws ParseException { … … 191 191 192 192 /** 193 * Checks that assertions work for country-specific checks. 194 * @throws ParseException if a parsing error occurs 195 */ 196 @Test 197 public void testAssertInsideCountry() throws ParseException { 198 final MapCSSTagChecker test = buildTagChecker( 199 "node[amenity=parking][inside(\"BR\")] {\n" + 200 " throwWarning: \"foo\";\n" + 201 " assertMatch: \"node amenity=parking\";\n" + 202 " assertNoMatch: \"node amenity=restaurant\";\n" + 203 "}"); 204 Set<String> errors = test.checkAsserts(test.checks.get("test")); 205 assertTrue(errors.toString(), errors.isEmpty()); 206 } 207 208 /** 193 209 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/13762">Bug #13762</a>. 194 210 * @throws ParseException if a parsing error occurs
Note:
See TracChangeset
for help on using the changeset viewer.