Changeset 11917 in josm
- Timestamp:
- 2017-04-15T16:20:45+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/OverpassDownloadReaderTest.java
r11916 r11917 4 4 import static org.junit.Assert.assertEquals; 5 5 import static org.junit.Assert.assertTrue; 6 7 import java.util.regex.Matcher; 6 8 7 9 import org.junit.Rule; … … 86 88 public void testOutputFormatStatement() { 87 89 for (OverpassOutpoutFormat oof : OverpassOutpoutFormat.values()) { 88 assertTrue(OverpassDownloadReader.OUTPUT_FORMAT_STATEMENT.matcher("[out:"+oof.getDirective()+"]").matches()); 90 Matcher m = OverpassDownloadReader.OUTPUT_FORMAT_STATEMENT.matcher("[out:"+oof.getDirective()+"]"); 91 assertTrue(m.matches()); 92 assertEquals(oof.getDirective(), m.group(1)); 89 93 } 90 94
Note:
See TracChangeset
for help on using the changeset viewer.