Changeset 12556 in josm
- Timestamp:
- 2017-08-02T02:08:36+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r12545 r12556 27 27 import org.openstreetmap.josm.tools.Logging; 28 28 import org.openstreetmap.josm.tools.MemoryManagerTest; 29 import org.openstreetmap.josm.tools.RightAndLefthandTraffic; 29 30 import org.openstreetmap.josm.tools.Territories; 30 31 import org.openstreetmap.josm.tools.date.DateUtils; … … 53 54 private boolean useHttps; 54 55 private boolean territories; 56 private boolean rlTraffic; 55 57 56 58 /** … … 193 195 public JOSMTestRules territories() { 194 196 territories = true; 197 return this; 198 } 199 200 /** 201 * Use right and lefthand traffic dataset in this test. 202 * @return this instance, for easy chaining 203 * @since 12556 204 */ 205 public JOSMTestRules rlTraffic() { 206 rlTraffic = true; 195 207 return this; 196 208 } … … 290 302 if (territories) { 291 303 Territories.initialize(); 304 } 305 306 if (rlTraffic) { 307 RightAndLefthandTraffic.initialize(); 292 308 } 293 309 -
trunk/test/unit/org/openstreetmap/josm/tools/RightAndLefthandTrafficTest.java
r11921 r12556 21 21 @Rule 22 22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 23 public JOSMTestRules rules = new JOSMTestRules().platform().projection(). commands();23 public JOSMTestRules rules = new JOSMTestRules().platform().projection().rlTraffic(); 24 24 25 25 /**
Note:
See TracChangeset
for help on using the changeset viewer.