Changeset 17809 in josm for trunk/test/functional/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2021-04-20T23:52:31+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/mappaint/StyleCacheTest.java
r17625 r17809 14 14 15 15 import org.junit.jupiter.api.AfterAll; 16 import org.junit.jupiter.api.BeforeAll;17 16 import org.junit.jupiter.api.BeforeEach; 18 17 import org.junit.jupiter.api.Test; … … 53 52 @RegisterExtension 54 53 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 55 public JOSMTestRules test = new JOSMTestRules(). preferences().projection().mapStyles().timeout(60000);54 public JOSMTestRules test = new JOSMTestRules().main().preferences().projection().mapStyles().timeout(60000); 56 55 57 56 /** … … 59 58 * @throws Exception If an error occurred during load. 60 59 */ 61 @Before All62 public staticvoid load() throws Exception {60 @BeforeEach 61 public void load() throws Exception { 63 62 img = new BufferedImage(IMG_WIDTH, IMG_HEIGHT, BufferedImage.TYPE_INT_ARGB); 64 63 try (InputStream in = Compression.getUncompressedFileInputStream(new File("nodist/data/neubrandenburg.osm.bz2"))) { … … 158 157 StyleElementList sel = p.a; 159 158 assertNotNull(sel); 160 Integer k = counter.get(sel); 161 if (k == null) { 162 k = 0; 163 } 164 counter.put(sel, k + 1); 159 counter.merge(sel, 1, Integer::sum); 165 160 } 166 161 }
Note:
See TracChangeset
for help on using the changeset viewer.