Changeset 11917 in josm


Ignore:
Timestamp:
2017-04-15T16:20:45+02:00 (6 weeks ago)
Author:
Don-vip
Message:

see #14653 - better unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/OverpassDownloadReaderTest.java

    r11916 r11917  
    44import static org.junit.Assert.assertEquals;
    55import static org.junit.Assert.assertTrue;
     6
     7import java.util.regex.Matcher;
    68
    79import org.junit.Rule;
     
    8688    public void testOutputFormatStatement() {
    8789        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));
    8993        }
    9094
Note: See TracChangeset for help on using the changeset viewer.