Changeset 16667 in josm for trunk/test/unit/org
- Timestamp:
- 2020-06-17T08:13:40+02:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerJOSMTooOldTest.java
r16666 r16667 28 28 import org.openstreetmap.josm.testutils.mockers.ExtendedDialogMocker; 29 29 import org.openstreetmap.josm.testutils.mockers.HelpAwareOptionPaneMocker; 30 import org.openstreetmap.josm.tools.Utils; 30 31 31 32 import com.github.tomakehurst.wiremock.client.WireMock; … … 99 100 private File targetQuxJarNew; 100 101 101 private final String bazPluginVersionReqString = "JOSM version 8\u202F001 required for plugin baz_plugin.";102 private final String dummyPluginVersionReqString = "JOSM version 7\u202F001 required for plugin dummy_plugin.";102 private final String bazPluginVersionReqString = u202f("JOSM version 8\u202F001 required for plugin baz_plugin."); 103 private final String dummyPluginVersionReqString = u202f("JOSM version 7\u202F001 required for plugin dummy_plugin."); 103 104 private final String dummyPluginFailedString = "<html>Updating the following plugin has failed:<ul><li>dummy_plugin</li></ul>" 104 105 + "Please open the Preference Dialog after JOSM has started and try to update it manually.</html>"; 106 107 private static String u202f(String s) { 108 return Utils.getJavaVersion() < 9 ? s.replace('\u202F', ',') : s; 109 } 105 110 106 111 /** … … 311 316 Config.getPref().putList("plugins", Arrays.asList("qux_plugin", "baz_plugin")); 312 317 313 new ExtendedDialogMocker(Collections.singletonMap( "JOSM version 7\u202F500 required for plugin qux_plugin.", "Download Plugin"));318 new ExtendedDialogMocker(Collections.singletonMap(u202f("JOSM version 7\u202F500 required for plugin qux_plugin."), "Download Plugin")); 314 319 315 320 Files.copy(this.referenceQuxJarOld.toPath(), this.targetQuxJar.toPath()); -
trunk/test/unit/org/openstreetmap/josm/tools/JosmDecimalFormatSymbolsProviderTest.java
r16665 r16667 29 29 @Test 30 30 public void testGroupingSeparator() { 31 if (Utils.getJavaVersion() < 9) { 32 // not supported 33 return; 34 } 31 35 assertTrue(I18n.getAvailableTranslations().count() > 10); 32 36 I18n.getAvailableTranslations().forEach(this::checkGroupingSymbol);
Note:
See TracChangeset
for help on using the changeset viewer.