Changeset 9130 in josm for trunk/test/unit
- Timestamp:
- 2015-12-15T12:20:46+01:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/projection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
r8509 r9130 22 22 * Test projections using reference data. (Currently provided by proj.4) 23 23 * 24 * The data file data_nodist/projection -reference-data.csv can be created like this:24 * The data file data_nodist/projection/projection-reference-data.csv can be created like this: 25 25 * Fist run this file's main method to collect epsg codes and bounds data. 26 26 * Then pipe the result into test/generate-proj-data.pl. … … 50 50 public void test() throws IOException, FileNotFoundException { 51 51 try (BufferedReader in = new BufferedReader(new InputStreamReader( 52 new FileInputStream("data_nodist/projection -reference-data.csv"), StandardCharsets.UTF_8))) {52 new FileInputStream("data_nodist/projection/projection-reference-data.csv"), StandardCharsets.UTF_8))) { 53 53 StringBuilder fail = new StringBuilder(); 54 54 String line; -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java
r8793 r9130 35 35 * This test is used to monitor changes in projection code. 36 36 * 37 * It keeps a record of test data in the file data_nodist/projection -regression-test-data.csv.37 * It keeps a record of test data in the file data_nodist/projection/projection-regression-test-data. 38 38 * This record is generated from the current Projection classes available in JOSM. It needs to 39 39 * be updated, whenever a projection is added / removed or an algorithm is changed, such that … … 45 45 public class ProjectionRegressionTest { 46 46 47 private static final String PROJECTION_DATA_FILE = "data_nodist/projection -regression-test-data.csv";48 private static final String PROJECTION_DATA_FILE_JAVA_9 = "data_nodist/projection -regression-test-data-java9.csv";47 private static final String PROJECTION_DATA_FILE = "data_nodist/projection/projection-regression-test-data"; 48 private static final String PROJECTION_DATA_FILE_JAVA_9 = "data_nodist/projection/projection-regression-test-data-java9"; 49 49 50 50 private static class TestData {
Note:
See TracChangeset
for help on using the changeset viewer.