Changeset 12545 in josm for trunk/test/unit/org
- Timestamp:
- 2017-07-31T01:02:55+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
r12249 r12545 27 27 import org.openstreetmap.josm.tools.Logging; 28 28 import org.openstreetmap.josm.tools.MemoryManagerTest; 29 import org.openstreetmap.josm.tools.Territories; 29 30 import org.openstreetmap.josm.tools.date.DateUtils; 30 31 … … 51 52 private boolean useMapStyles; 52 53 private boolean useHttps; 54 private boolean territories; 53 55 54 56 /** … … 156 158 157 159 /** 158 159 160 160 * Allow the execution of commands using {@link Main#undoRedo} 161 * @return this instance, for easy chaining 162 */ 161 163 public JOSMTestRules commands() { 162 164 commands = true; … … 181 183 preferences(); 182 184 useMapStyles = true; 185 return this; 186 } 187 188 /** 189 * Use boundaries dataset in this test. 190 * @return this instance, for easy chaining 191 * @since 12545 192 */ 193 public JOSMTestRules territories() { 194 territories = true; 183 195 return this; 184 196 } … … 274 286 // Reset the map paint styles. 275 287 MapPaintStyles.readFromPreferences(); 288 } 289 290 if (territories) { 291 Territories.initialize(); 276 292 } 277 293 -
trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTest.java
r11921 r12545 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().territories(); 24 24 25 25 /**
Note:
See TracChangeset
for help on using the changeset viewer.