Changeset 10588 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2016-07-22T23:03:22+02:00 (8 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r10569 r10588 19 19 import org.openstreetmap.josm.io.OsmTransferCanceledException; 20 20 import org.openstreetmap.josm.tools.I18n; 21 import org.openstreetmap.josm.tools.MemoryManagerTest; 21 22 import org.openstreetmap.josm.tools.date.DateUtils; 22 23 … … 39 40 private boolean platform; 40 41 private boolean useProjection; 42 private boolean allowMemoryManagerLeaks; 41 43 42 44 /** … … 130 132 public JOSMTestRules projection() { 131 133 useProjection = true; 134 return this; 135 } 136 137 /** 138 * Allow the memory manager to contain items after execution of the test cases. 139 * @return this instance, for easy chaining 140 */ 141 public JOSMTestRules memoryManagerLeaks() { 142 allowMemoryManagerLeaks = true; 132 143 return this; 133 144 } … … 218 229 @SuppressFBWarnings("DM_GC") 219 230 private void cleanUpFromJosmFixture() { 231 MemoryManagerTest.resetState(true); 220 232 Main.getLayerManager().resetState(); 221 233 Main.pref = null; … … 237 249 // Remove all layers 238 250 Main.getLayerManager().resetState(); 251 MemoryManagerTest.resetState(allowMemoryManagerLeaks); 239 252 240 253 // TODO: Remove global listeners and other global state.
Note:
See TracChangeset
for help on using the changeset viewer.