use of org.eclipse.dataspaceconnector.transfer.provision.http.HttpProvisionerExtension in project DataSpaceConnector by eclipse-dataspaceconnector.
the class HttpProvisionerExtensionEndToEndTest method setup.
@BeforeEach
void setup(EdcExtension extension) {
extension.setConfiguration(Map.of("web.http.data.port", String.valueOf(dataPort), "web.http.data.path", "/api/v1/data"));
delegate = mock(Interceptor.class);
var httpClient = testOkHttpClient().newBuilder().addInterceptor(delegate).build();
extension.registerServiceMock(TransferWaitStrategy.class, () -> 1);
extension.registerSystemExtension(ServiceExtension.class, new HttpProvisionerExtension(httpClient));
extension.registerSystemExtension(ServiceExtension.class, new DummyCallbackUrlExtension());
extension.setConfiguration(PROVISIONER_CONFIG);
extension.registerSystemExtension(ServiceExtension.class, new ServiceExtension() {
@Inject
private AssetLoader // needed for on-demand dependency resolution
loader;
});
}
Aggregations