Changeset 18690 in josm for trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
- Timestamp:
- 2023-03-13T21:59:27+01:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
r18027 r18690 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.projection; 3 4 import static org.junit.jupiter.api.Assertions.fail; 3 5 4 6 import java.io.BufferedReader; … … 34 36 import java.util.regex.Pattern; 35 37 36 import org.junit.Assert;37 38 import org.junit.jupiter.api.Test; 38 39 import org.junit.jupiter.api.extension.RegisterExtension; … … 133 134 Matcher m = projPattern.matcher(line); 134 135 if (!m.matches()) { 135 Assert.fail("unable to parse line: " + line);136 fail("unable to parse line: " + line); 136 137 } 137 138 String code = m.group(1); … … 383 384 refs.stream().map(ref -> ref.code).forEach(allCodes::remove); 384 385 if (!allCodes.isEmpty()) { 385 Assert.fail("no reference data for following projections: "+allCodes);386 fail("no reference data for following projections: "+allCodes); 386 387 } 387 388 … … 389 390 String def0 = Projections.getInit(ref.code); 390 391 if (def0 == null) { 391 Assert.fail("unknown code: "+ref.code);392 fail("unknown code: "+ref.code); 392 393 } 393 394 if (!ref.def.equals(def0)) { … … 411 412 " expected: eastnorth(%s,%s),%n" + 412 413 " but got: eastnorth(%s,%s)!%n", 413 proj .toString(), proj.toCode(), ll.lat(), ll.lon(), enRef.east(), enRef.north(), en.east(), en.north());414 proj, proj.toCode(), ll.lat(), ll.lon(), enRef.east(), enRef.north(), en.east(), en.north()); 414 415 failures.add(errorEN); 415 416 failingProjs.computeIfAbsent(proj.proj.getProj4Id(), x -> new TreeSet<>()).add(ref.code); … … 419 420 }); 420 421 if (!failures.isEmpty()) { 421 System.err.println(failures .toString());422 System.err.println(failures); 422 423 throw new AssertionError("Failing:\n" + 423 424 failingProjs.keySet().size() + " projections: " + failingProjs.keySet() + "\n" +
Note:
See TracChangeset
for help on using the changeset viewer.