Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayerTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayerTest.java
r14138 r17275 2 2 package org.openstreetmap.josm.gui.layer; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertFalse;6 import static org.junit. Assert.assertNotNull;7 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 import static org.junit.jupiter.api.Assertions.assertNotNull; 7 import static org.junit.jupiter.api.Assertions.assertTrue; 8 8 9 9 import java.awt.Point; … … 12 12 import java.util.concurrent.atomic.AtomicBoolean; 13 13 14 import org.junit. Before;15 import org.junit. Rule;16 import org.junit. Test;14 import org.junit.jupiter.api.BeforeEach; 15 import org.junit.jupiter.api.Test; 16 import org.junit.jupiter.api.extension.RegisterExtension; 17 17 import org.openstreetmap.gui.jmapviewer.Coordinate; 18 18 import org.openstreetmap.gui.jmapviewer.Projected; … … 39 39 * Test of the base {@link AbstractTileSourceLayer} class 40 40 */ 41 publicclass AbstractTileSourceLayerTest {41 class AbstractTileSourceLayerTest { 42 42 43 43 /** 44 44 * Setup test 45 45 */ 46 @R ule46 @RegisterExtension 47 47 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 48 48 public JOSMTestRules test = new JOSMTestRules().projection().main(); … … 148 148 * Create test layer 149 149 */ 150 @Before 150 @BeforeEach 151 151 public void setUp() { 152 152 MainApplication.getLayerManager().addLayer(new OsmDataLayer(new DataSet(), "", null)); … … 159 159 */ 160 160 @Test 161 publicvoid testFilterChanged() {161 void testFilterChanged() { 162 162 try { 163 163 ImageryFilterSettings filterSettings = new ImageryFilterSettings(); … … 175 175 */ 176 176 @Test 177 publicvoid testClearTileCache() {177 void testClearTileCache() { 178 178 testLayer.loadAllTiles(true); 179 179 assertTrue(testLayer.getTileCache().getTileCount() > 0); … … 186 186 */ 187 187 @Test 188 publicvoid testGetAdjustAction() {188 void testGetAdjustAction() { 189 189 assertNotNull(testLayer.getAdjustAction()); 190 190 } … … 194 194 */ 195 195 @Test 196 publicvoid testGetInfoComponent() {196 void testGetInfoComponent() { 197 197 assertNotNull(testLayer.getInfoComponent()); 198 198 } … … 202 202 */ 203 203 @Test 204 publicvoid testTileSourceLayerPopup() {204 void testTileSourceLayerPopup() { 205 205 assertNotNull(testLayer.new TileSourceLayerPopup(100, 100)); 206 206 }
Note:
See TracChangeset
for help on using the changeset viewer.
