Changeset 17992 in josm for trunk


Ignore:
Timestamp:
2021-07-11T02:35:03+02:00 (3 years ago)
Author:
Don-vip
Message:

see #20991 - fix unit test

File:
1 edited

Legend:

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

    r17989 r17992  
    1010import java.util.Collection;
    1111import java.util.Collections;
     12import java.util.Locale;
    1213
    1314import org.junit.jupiter.api.Test;
     
    4142    @Test
    4243    void testErrors() throws IOException {
     44        Locale.setDefault(Locale.ENGLISH);
    4345        doTest(Arrays.asList(TestError.builder(new RightAngleBuildingTest(), Severity.OTHER, 3701)
    4446                .message("Building with an almost square angle")
     
    4648                  "  <analyser timestamp='\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z' name='Almost right angle buildings'>"
    4749                + "    <class id='1' level='3'>"
    48                 + "      <classtext lang='fr' title='Building with an almost square angle'/>"
     50                + "      <classtext lang='en' title='Building with an almost square angle'/>"
    4951                + "    </class>"
    5052                + "    <error class='1'>"
    5153                + "      <location lat='90\\.0' lon='0\\.0'/>"
    5254                + "      <node id='-1' visible='true' lat='90\\.0' lon='0\\.0' />"
    53                 + "      <text lang='fr' value='null'/>"
     55                + "      <text lang='en' value='null'/>"
    5456                + "    </error>"
    5557                + "  </analyser>");
Note: See TracChangeset for help on using the changeset viewer.