Changeset 16643 in josm for trunk/test/unit/org/openstreetmap/josm/data
- Timestamp:
- 2020-06-14T20:19:59+02:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/TagCollectionTest.java
r14518 r16643 689 689 TagCollection g = new TagCollection(Arrays.asList(new Tag("k", "b"), new Tag("k", "a"), new Tag("k", "b"), 690 690 new Tag("k", "c"), new Tag("k", "d"))); 691 assertEquals("a;b;c;d", Stream.of(g.getJoinedValues("k").split(";" )).sorted().collect(Collectors.joining(";")));691 assertEquals("a;b;c;d", Stream.of(g.getJoinedValues("k").split(";", -1)).sorted().collect(Collectors.joining(";"))); 692 692 } 693 693 -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
r16006 r16643 99 99 debug = "debug".equals(args[0]); 100 100 if (args[args.length - 1].startsWith("EPSG:")) { 101 forcedCodes = Arrays.asList(args[args.length - 1].split("," ));101 forcedCodes = Arrays.asList(args[args.length - 1].split(",", -1)); 102 102 } 103 103 } … … 137 137 result.add(curEntry); 138 138 } else if (curEntry != null) { 139 String[] f = line.trim().split("," );139 String[] f = line.trim().split(",", -1); 140 140 double lon = Double.parseDouble(f[0]); 141 141 double lat = Double.parseDouble(f[1]); … … 277 277 List<String> args = new ArrayList<>(); 278 278 args.add(CS2CS_EXE); 279 args.addAll(Arrays.asList("-f %.9f +proj=longlat +datum=WGS84 +to".split(" " )));279 args.addAll(Arrays.asList("-f %.9f +proj=longlat +datum=WGS84 +to".split(" ", -1))); 280 280 // proj.4 cannot read our ntf_r93_b.gsb file 281 281 // possibly because it is big endian. Use equivalent … … 286 286 def = def.replace("'", "\\'").replace("\"", "\\\""); 287 287 } 288 args.addAll(Arrays.asList(def.split(" " )));288 args.addAll(Arrays.asList(def.split(" ", -1))); 289 289 ProcessBuilder pb = new ProcessBuilder(args); 290 290 pb.environment().put("PROJ_LIB", new File(PROJ_LIB_DIR).getAbsolutePath()); -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java
r16445 r16643 125 125 126 126 private static Pair<Double, Double> readLine(String expectedName, String input) { 127 String[] fields = input.trim().split("[ ]+" );127 String[] fields = input.trim().split("[ ]+", -1); 128 128 if (fields.length != 3) throw new AssertionError(); 129 129 if (!fields[0].equals(expectedName)) throw new AssertionError(); -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/ValidatorTestUtils.java
r15071 r16643 51 51 Set<Integer> expectedCodes = new TreeSet<>(); 52 52 if (!"none".equals(codes)) { 53 for (String code : codes.split("," )) {53 for (String code : codes.split(",", -1)) { 54 54 expectedCodes.add(Integer.parseInt(code)); 55 55 }
Note:
See TracChangeset
for help on using the changeset viewer.