Changeset 14504 in josm for trunk/test/unit/org
- Timestamp:
- 2018-12-03T20:08:05+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/OsmDataLayerTest.java
r14446 r14504 32 32 import org.openstreetmap.josm.data.osm.Way; 33 33 import org.openstreetmap.josm.gui.MainApplication; 34 import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils; 34 35 import org.openstreetmap.josm.io.IllegalDataException; 35 36 import org.openstreetmap.josm.io.OsmReader; 36 37 import org.openstreetmap.josm.testutils.JOSMTestRules; 37 38 import org.openstreetmap.josm.testutils.mockers.ExtendedDialogMocker; 39 import org.openstreetmap.josm.tools.Logging; 38 40 import org.openstreetmap.josm.tools.date.DateUtils; 39 41 … … 310 312 */ 311 313 @Test 312 public void testLayerNameIncreases() throws Exception{314 public void testLayerNameIncreases() { 313 315 final OsmDataLayer layer1 = new OsmDataLayer(new DataSet(), OsmDataLayer.createLayerName(147), null); 314 316 final OsmDataLayer layer2 = new OsmDataLayer(new DataSet(), OsmDataLayer.createNewName(), null); … … 334 336 assertEquals("Data Layer from GeoJSON: foo.geojson", layer.getName()); 335 337 } 338 339 /** 340 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/17065">#17065</a>. 341 */ 342 @Test 343 public void testTicket17065() { 344 ClipboardUtils.clear(); 345 Logging.clearLastErrorAndWarnings(); 346 new OsmDataLayer(new DataSet(), null, null).destroy(); 347 assertTrue(Logging.getLastErrorAndWarnings().stream().noneMatch(s -> s.contains("UnsupportedFlavorException"))); 348 } 336 349 }
Note:
See TracChangeset
for help on using the changeset viewer.