dev.galasa.extensions.mocks.MockHttpClientFactory Maven / Gradle / Ivy
The newest version!
/*
* Copyright contributors to the Galasa project
*
* SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.extensions.mocks;
import org.apache.http.impl.client.CloseableHttpClient;
import dev.galasa.extensions.common.api.HttpClientFactory;
public class MockHttpClientFactory implements HttpClientFactory {
private CloseableHttpClient clientToReturn ;
public MockHttpClientFactory(CloseableHttpClient clientToReturn) {
this.clientToReturn = clientToReturn;
}
@Override
public CloseableHttpClient createClient() {
return this.clientToReturn;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy