Changeset 15716 in josm for trunk/test/unit
- Timestamp:
- 2020-01-18T14:13:56+01:00 (5 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
r15034 r15716 32 32 import java.util.regex.Pattern; 33 33 34 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 34 35 import org.junit.Assert; 35 36 import org.junit.Rule; … … 42 43 import org.openstreetmap.josm.tools.Pair; 43 44 import org.openstreetmap.josm.tools.PlatformManager; 44 import org.openstreetmap.josm.tools.Utils;45 46 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;47 45 48 46 /** … … 323 321 } 324 322 } catch (IOException e) { 325 System.err.println("Error: Running external command failed: " + e + "\nCommand was: " +Utils.join(" ", args));323 System.err.println("Error: Running external command failed: " + e + "\nCommand was: " + String.join(" ", args)); 326 324 return null; 327 325 } … … 341 339 return new EastNorth(Double.parseDouble(es), Double.parseDouble(ns)); 342 340 } catch (NumberFormatException nfe) { 343 System.err.println("Error: Cannot parse cs2cs output: '" + es + "', '" + ns + "'" + "\nCommand was: " +Utils.join(" ", args));341 System.err.println("Error: Cannot parse cs2cs output: '" + es + "', '" + ns + "'" + "\nCommand was: " + String.join(" ", args)); 344 342 return null; 345 343 } -
trunk/test/unit/org/openstreetmap/josm/gui/io/CustomConfiguratorTest.java
r12849 r15716 55 55 "Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.")); 56 56 CustomConfigurator.exportPreferencesKeysToFile(tmp.getAbsolutePath(), false, "lorem_ipsum"); 57 String xml = Utils.join("\n", Files.readAllLines(tmp.toPath(), StandardCharsets.UTF_8));57 String xml = String.join("\n", Files.readAllLines(tmp.toPath(), StandardCharsets.UTF_8)); 58 58 assertTrue(xml.contains("<preferences operation=\"replace\">")); 59 59 for (String entry : Config.getPref().getList("lorem_ipsum")) { … … 63 63 Config.getPref().putList("test", Arrays.asList("11111111", "2222222", "333333333")); 64 64 CustomConfigurator.exportPreferencesKeysByPatternToFile(tmp.getAbsolutePath(), true, "test"); 65 xml = Utils.join("\n", Files.readAllLines(tmp.toPath(), StandardCharsets.UTF_8));65 xml = String.join("\n", Files.readAllLines(tmp.toPath(), StandardCharsets.UTF_8)); 66 66 assertTrue(xml.contains("<preferences operation=\"append\">")); 67 67 for (String entry : Config.getPref().getList("test")) {
Note:
See TracChangeset
for help on using the changeset viewer.