- Timestamp:
- 2022-07-26T22:44:59+02:00 (2 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/SelectActionTest.java
r17275 r18526 27 27 import org.openstreetmap.josm.spi.preferences.Config; 28 28 import org.openstreetmap.josm.testutils.JOSMTestRules; 29 import org.openstreetmap.josm.tools.PlatformManager; 29 30 import org.openstreetmap.josm.tools.ReflectionUtils; 30 31 … … 98 99 99 100 MouseEvent event; 101 final int ctrlMask = PlatformManager.getPlatform().getMenuShortcutKeyMaskEx(); 100 102 event = new MouseEvent(map, 101 103 MouseEvent.MOUSE_PRESSED, 102 104 0, 103 InputEvent.BUTTON1_DOWN_MASK | InputEvent.CTRL_DOWN_MASK,105 InputEvent.BUTTON1_DOWN_MASK | ctrlMask, 104 106 100, 0, 105 107 1, … … 109 111 MouseEvent.MOUSE_DRAGGED, 110 112 1000, 111 InputEvent.BUTTON1_DOWN_MASK | InputEvent.CTRL_DOWN_MASK,113 InputEvent.BUTTON1_DOWN_MASK | ctrlMask, 112 114 50, 0, 113 115 1, … … 117 119 MouseEvent.MOUSE_RELEASED, 118 120 2000, 119 InputEvent.BUTTON1_DOWN_MASK | InputEvent.CTRL_DOWN_MASK,121 InputEvent.BUTTON1_DOWN_MASK | ctrlMask, 120 122 5, 0, 121 123 1, -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r18410 r18526 450 450 try { 451 451 ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:4326")); 452 FeatureAdapter.registerApiKeyAdapter(id -> TestUtils.getTestDataRoot() );452 FeatureAdapter.registerApiKeyAdapter(id -> TestUtils.getTestDataRoot().replace('\\', '/')); 453 453 ImageryInfo testImageryWMTS = new ImageryInfo(testImagery12168); 454 testImageryWMTS.setUrl(testImageryWMTS.getUrl().replace(TestUtils.getTestDataRoot() , "{apikey}"));454 testImageryWMTS.setUrl(testImageryWMTS.getUrl().replace(TestUtils.getTestDataRoot().replace('\\', '/'), "{apikey}")); 455 455 assertTrue(testImageryWMTS.getUrl().contains("{apikey}"), testImageryWMTS.getUrl()); 456 456 testImageryWMTS.setId("WMTSTileSourceTest#testApiKeyValid"); … … 470 470 FeatureAdapter.registerApiKeyAdapter(id -> null); 471 471 ImageryInfo testImageryWMTS = new ImageryInfo(testImagery12168); 472 testImageryWMTS.setUrl(testImageryWMTS.getUrl().replace(TestUtils.getTestDataRoot() , "{apikey}"));472 testImageryWMTS.setUrl(testImageryWMTS.getUrl().replace(TestUtils.getTestDataRoot().replace('\\', '/'), "{apikey}")); 473 473 assertTrue(testImageryWMTS.getUrl().contains("{apikey}"), testImageryWMTS.getUrl()); 474 474 testImageryWMTS.setId("WMTSTileSourceTest#testApiKeyInvalid");
Note:
See TracChangeset
for help on using the changeset viewer.