- Timestamp:
- 2019-10-01T02:20:06+02:00 (5 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/GpxLayerTest.java
r15399 r15400 41 41 @Rule 42 42 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 43 public JOSMTestRules test = new JOSMTestRules().main().projection().i18n() ;43 public JOSMTestRules test = new JOSMTestRules().main().projection().i18n().metricSystem(); 44 44 45 45 private static String getHtml(GpxLayer layer) { -
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r15399 r15400 101 101 private boolean territories; 102 102 private boolean rlTraffic; 103 private boolean metric; 103 104 private boolean main; 104 105 … … 283 284 territories(); 284 285 rlTraffic = true; 286 return this; 287 } 288 289 /** 290 * Force metric measurement system. 291 * @return this instance, for easy chaining 292 * @since 15400 293 */ 294 public JOSMTestRules metricSystem() { 295 metric = true; 285 296 return this; 286 297 } … … 502 513 503 514 // Make sure we're using the metric system 504 SystemOfMeasurement.setSystemOfMeasurement(SystemOfMeasurement.METRIC.getName()); 515 if (metric) { 516 SystemOfMeasurement.setSystemOfMeasurement(SystemOfMeasurement.METRIC.getName()); 517 } 505 518 506 519 if (useHttps) {
Note:
See TracChangeset
for help on using the changeset viewer.