Changeset 11447 in josm for trunk/test/unit
- Timestamp:
- 2017-01-09T23:57:47+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/search/SearchCompilerTest.java
r11324 r11447 4 4 import static org.junit.Assert.assertEquals; 5 5 import static org.junit.Assert.assertFalse; 6 import static org.junit.Assert.assertNotNull; 6 7 import static org.junit.Assert.assertTrue; 7 8 import static org.junit.Assert.fail; 8 9 10 import java.nio.charset.StandardCharsets; 11 import java.nio.file.Files; 12 import java.nio.file.Paths; 13 9 14 import org.junit.Rule; 10 15 import org.junit.Test; 16 import org.openstreetmap.josm.TestUtils; 11 17 import org.openstreetmap.josm.actions.search.SearchAction.SearchSetting; 12 18 import org.openstreetmap.josm.actions.search.SearchCompiler.Match; … … 83 89 } 84 90 85 pr otectedOsmPrimitive newPrimitive(String key, String value) {91 private static OsmPrimitive newPrimitive(String key, String value) { 86 92 final Node p = new Node(); 87 93 p.put(key, value); … … 466 472 SearchCompiler.compile(setting); 467 473 } 474 475 /** 476 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/14217">Bug #14217</a>. 477 * @throws Exception never 478 */ 479 @Test 480 public void testTicket14217() throws Exception { 481 assertNotNull(SearchCompiler.compile(new String(Files.readAllBytes( 482 Paths.get(TestUtils.getRegressionDataFile(14217, "filter.txt"))), StandardCharsets.UTF_8))); 483 } 468 484 }
Note:
See TracChangeset
for help on using the changeset viewer.