Changeset 19118 in josm for trunk/test/unit
- Timestamp:
- 2024-06-19T20:17:08+02:00 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/FakeImagery.java
r19117 r19118 17 17 import org.junit.jupiter.api.extension.ExtendWith; 18 18 import org.junit.jupiter.api.extension.ExtensionContext; 19 import org.junit.jupiter.api.extension.ParameterContext; 20 import org.junit.jupiter.api.extension.ParameterResolutionException; 19 21 import org.openstreetmap.josm.data.imagery.ImageryInfo; 20 22 import org.openstreetmap.josm.data.imagery.ImageryLayerInfo; … … 126 128 } 127 129 130 @Override 131 public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext) 132 throws ParameterResolutionException { 133 if (parameterContext.getParameter().getType().equals(FakeImageryWireMockExtension.class)) { 134 return true; 135 } 136 return super.supportsParameter(parameterContext, extensionContext); 137 } 138 139 @Override 140 public Object resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext) 141 throws ParameterResolutionException { 142 if (parameterContext.getParameter().getType().equals(FakeImageryWireMockExtension.class)) { 143 return this; 144 } 145 return super.resolveParameter(parameterContext, extensionContext); 146 } 147 128 148 private void registerLayers(ExtensionContext.Store store, WireMockRuntimeInfo wireMockRuntimeInfo) { 129 149 if (this.clearSlippyMapSources) {
Note:
See TracChangeset
for help on using the changeset viewer.