Changeset 18051 in josm for trunk/test/unit/org
- Timestamp:
- 2021-07-17T17:24:53+02:00 (3 years ago)
- 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 51 51 TaggingPresetValidation.validate(primitive, label); 52 52 53 // CHECKSTYLE.OFF: LineLength 53 54 assertTrue(label.isVisible()); 54 55 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 60 62 } 61 63 -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/AnnotationUtils.java
r18037 r18051 62 62 } catch (UnsupportedOperationException e) { 63 63 // Probably an unmodifiable collection 64 System.err.println("Unable to clear " + field); 64 65 } 65 66 } else if (!isFinal) { -
trunk/test/unit/org/openstreetmap/josm/tools/JosmDecimalFormatSymbolsProviderTest.java
r17967 r18051 35 35 static void beforeAll() throws IOException { 36 36 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"); 38 39 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()); 40 42 } 41 43 }
Note:
See TracChangeset
for help on using the changeset viewer.