Changeset 11777 in josm
- Timestamp:
- 2017-03-25T22:09:41+01:00 (8 years ago)
- Location:
- trunk/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/mappaint/StyleCacheTest.java
r11776 r11777 53 53 @Rule 54 54 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 55 public JOSMTestRules test = new JOSMTestRules().preferences().platform().projection(); 55 public JOSMTestRules test = new JOSMTestRules().preferences().platform().projection().mapStyles(); 56 56 57 57 /** 58 58 * Load the test data that is required. 59 * @throws Exception 59 * @throws Exception It an error occurred during load. 60 60 */ 61 61 @BeforeClass … … 96 96 nc = new MapView(Main.getLayerManager(), null); 97 97 nc.setBounds(0, 0, IMG_WIDTH, IMG_HEIGHT); 98 MapPaintStyles.readFromPreferences();99 98 } 100 99 -
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r11251 r11777 15 15 import org.openstreetmap.josm.Main; 16 16 import org.openstreetmap.josm.data.projection.Projections; 17 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; 17 18 import org.openstreetmap.josm.gui.util.GuiHelper; 18 19 import org.openstreetmap.josm.io.OsmApi; … … 44 45 private boolean commands; 45 46 private boolean allowMemoryManagerLeaks; 47 private boolean useMapStyles; 46 48 47 49 /** … … 153 155 public JOSMTestRules memoryManagerLeaks() { 154 156 allowMemoryManagerLeaks = true; 157 return this; 158 } 159 160 /** 161 * Use map styles in this test. 162 * @return this instance, for easy chaining 163 * @since 11777 164 */ 165 public JOSMTestRules mapStyles() { 166 preferences(); 167 useMapStyles = true; 155 168 return this; 156 169 } … … 233 246 if (platform) { 234 247 Main.determinePlatformHook(); 248 } 249 250 if (useMapStyles) { 251 // Reset the map paint styles. 252 MapPaintStyles.readFromPreferences(); 235 253 } 236 254
Note:
See TracChangeset
for help on using the changeset viewer.