Changeset 18051 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2021-07-17T17:24:53+02:00 (3 years ago)
Author:
Don-vip
Message:

upgrade to checkstyle 8.43, fix violations

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetValidationTest.java

    r18001 r18051  
    5151        TaggingPresetValidation.validate(primitive, label);
    5252
     53        // CHECKSTYLE.OFF: LineLength
    5354        assertTrue(label.isVisible());
    5455        assertEquals("<html><ul>" +
    55                 "<li>Opening hours syntax (Hours without minutes)</li>" +
    56                 "<li>unusual value of width: meters is default; only positive values; point is decimal separator; if units, put space then unit</li>" +
    57                 "<li>unusual value of incline, use x% or x° or up or down instead</li>" +
    58                 "<li>suspicious tag combination (width on suspicious object)</li>" +
    59                 "<li>suspicious tag combination (incline on suspicious object)</li></ul>", label.getToolTipText());
     56            "<li>Opening hours syntax (Hours without minutes)</li>" +
     57            "<li>unusual value of width: meters is default; only positive values; point is decimal separator; if units, put space then unit</li>" +
     58            "<li>unusual value of incline, use x% or x° or up or down instead</li>" +
     59            "<li>suspicious tag combination (width on suspicious object)</li>" +
     60            "<li>suspicious tag combination (incline on suspicious object)</li></ul>", label.getToolTipText());
     61        // CHECKSTYLE.ON: LineLength
    6062    }
    6163
  • trunk/test/unit/org/openstreetmap/josm/testutils/annotations/AnnotationUtils.java

    r18037 r18051  
    6262                } catch (UnsupportedOperationException e) {
    6363                    // Probably an unmodifiable collection
     64                    System.err.println("Unable to clear " + field);
    6465                }
    6566            } else if (!isFinal) {
  • trunk/test/unit/org/openstreetmap/josm/tools/JosmDecimalFormatSymbolsProviderTest.java

    r17967 r18051  
    3535    static void beforeAll() throws IOException {
    3636        if (Utils.getJavaVersion() >= 9) {
    37             assertEquals("SPI,JRE,CLDR", System.getProperty("java.locale.providers"), "This test must be launched with -Djava.locale.providers=SPI,JRE,CLDR");
     37            assertEquals("SPI,JRE,CLDR", System.getProperty("java.locale.providers"),
     38                    "This test must be launched with -Djava.locale.providers=SPI,JRE,CLDR");
    3839            try (InputStream in = I18n.class.getResourceAsStream("/META-INF/services/java.text.spi.DecimalFormatSymbolsProvider")) {
    39                 assertEquals("org.openstreetmap.josm.tools.JosmDecimalFormatSymbolsProvider", new String(Utils.readBytesFromStream(in), StandardCharsets.UTF_8).trim());
     40                assertEquals("org.openstreetmap.josm.tools.JosmDecimalFormatSymbolsProvider",
     41                        new String(Utils.readBytesFromStream(in), StandardCharsets.UTF_8).trim());
    4042            }
    4143        }
Note: See TracChangeset for help on using the changeset viewer.