Changeset 18690 in josm for trunk/test/performance/org/openstreetmap/josm/gui
- Timestamp:
- 2023-03-13T21:59:27+01:00 (3 years ago)
- Location:
- trunk/test/performance/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 2 edited
-
MapRendererPerformanceTest.java (modified) (8 diffs)
-
mapcss/MapCSSStyleSourceFilterTest.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/performance/org/openstreetmap/josm/gui/mappaint/MapRendererPerformanceTest.java
r17615 r18690 3 3 4 4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertNotNull; 6 import static org.junit.jupiter.api.Assertions.assertTrue; 5 7 6 8 import java.awt.Color; … … 21 23 import javax.imageio.ImageIO; 22 24 23 import org.junit.Assert;24 25 import org.junit.jupiter.api.AfterAll; 25 26 import org.junit.jupiter.api.BeforeAll; … … 125 126 List<StyleSource> sources = MapPaintStyles.getStyles().getStyleSources(); 126 127 filterStyleIdx = sources.indexOf(filterStyle); 127 Assert.assertEquals(2, filterStyleIdx);128 129 Assert.assertEquals(Feature.values().length, filterStyle.settings.size());128 assertEquals(2, filterStyleIdx); 129 130 assertEquals(Feature.values().length, filterStyle.settings.size()); 130 131 for (StyleSetting set : filterStyle.settings) { 131 132 BooleanStyleSetting bset = (BooleanStyleSetting) set; … … 139 140 } 140 141 } 141 Assert.assertTrue(prefKey, found);142 assertTrue(found, prefKey); 142 143 } 143 144 … … 151 152 } 152 153 } 153 Assert.assertNotNull(defaultStyle);154 assertNotNull(defaultStyle); 154 155 155 156 for (StyleSetting set : defaultStyle.settings) { … … 161 162 } 162 163 } 163 Assert.assertNotNull(hideIconsSetting);164 assertNotNull(hideIconsSetting); 164 165 hideIconsSetting.setValue(false); 165 166 MapPaintStyleLoader.reloadStyles(defaultStyleIdx); … … 209 210 if (checkScale) { 210 211 int lvl = Selector.GeneralSelector.scale2level(nc.getDist100Pixel()); 211 Assert.assertEquals(17, lvl);212 assertEquals(17, lvl); 212 213 } 213 214 … … 360 361 361 362 public void dumpTimes() { 362 System.out.print (String.format("gen. %4d, sort %4d, draw %4d%n", getGenerateTime(), getSortTime(), getDrawTime()));363 System.out.printf("gen. %4d, sort %4d, draw %4d%n", getGenerateTime(), getSortTime(), getDrawTime()); 363 364 } 364 365 -
trunk/test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java
r17275 r18690 18 18 * @author Michael Zangl 19 19 */ 20 @Timeout(value = 15 *60, unit = TimeUnit.SECONDS)20 @Timeout(value = 15, unit = TimeUnit.MINUTES) 21 21 class MapCSSStyleSourceFilterTest { 22 22 … … 71 71 72 72 private void addRule(String selector) { 73 sb.append(selector +" {}\n");73 sb.append(selector).append(" {}\n"); 74 74 } 75 75
Note:
See TracChangeset
for help on using the changeset viewer.
