net.serenitybdd.rest.stubs.ResponseStub Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serenity-rest-assured Show documentation
Show all versions of serenity-rest-assured Show documentation
Serenity RestAssured integration
package net.serenitybdd.rest.stubs;
import io.restassured.common.mapper.TypeRef;
import io.restassured.http.Cookie;
import io.restassured.http.Cookies;
import io.restassured.http.Headers;
import io.restassured.internal.ValidatableResponseStub;
import io.restassured.mapper.ObjectMapper;
import io.restassured.mapper.ObjectMapperType;
import io.restassured.path.json.JsonPath;
import io.restassured.path.json.config.JsonPathConfig;
import io.restassured.path.xml.XmlPath;
import io.restassured.path.xml.config.XmlPathConfig;
import io.restassured.response.Response;
import io.restassured.response.ResponseBody;
import io.restassured.response.ValidatableResponse;
import org.mockito.Mockito;
import java.io.InputStream;
import java.lang.reflect.Type;
import java.util.Map;
import java.util.concurrent.TimeUnit;
/**
* Created by john on 23/07/2015.
*/
public class ResponseStub implements Response {
@Override
public ValidatableResponse then() {
return new ValidatableResponseStub();
}
@Override
public String print() {
return null;
}
@Override
public String prettyPrint() {
return null;
}
@Override
public Response peek() {
return new ResponseStub();
}
@Override
public Response prettyPeek() {
return new ResponseStub();
}
@Override
public T as(Class cls) {
return null;
}
@Override
public T as(Class cls, ObjectMapperType mapperType) {
return null;
}
@Override
public T as(Class cls, ObjectMapper mapper) {
return null;
}
@Override
public T as(TypeRef typeRef) {
return null;
}
@Override
public T as(Type cls) {
return null;
}
@Override
public T as(Type cls, ObjectMapperType mapperType) {
return null;
}
@Override
public T as(Type cls, ObjectMapper mapper) {
return null;
}
@Override
public JsonPath jsonPath() {
return new JsonPath("");
}
@Override
public JsonPath jsonPath(JsonPathConfig config) {
return new JsonPath("");
}
@Override
public XmlPath xmlPath() {
return new XmlPath("");
}
@Override
public XmlPath xmlPath(XmlPathConfig config) {
return new XmlPath("");
}
@Override
public XmlPath xmlPath(XmlPath.CompatibilityMode compatibilityMode) {
return new XmlPath("");
}
@Override
public XmlPath htmlPath() {
return new XmlPath("");
}
@Override
public T path(String path, String... arguments) {
return null;
}
@Override
public String asString() {
return null;
}
@Override
public String asPrettyString() {
return null;
}
@Override
public byte[] asByteArray() {
return new byte[0];
}
@Override
public InputStream asInputStream() {
return null;
}
@Override
public Response andReturn() {
return this;
}
@Override
public Response thenReturn() {
return this;
}
@Override
public ResponseBody body() {
return Mockito.mock(ResponseBody.class);
}
@Override
public ResponseBody getBody() {
return null;
}
@Override
public Headers headers() {
return null;
}
@Override
public Headers getHeaders() {
return null;
}
@Override
public String header(String name) {
return null;
}
@Override
public String getHeader(String name) {
return null;
}
@Override
public Map cookies() {
return null;
}
@Override
public Cookies detailedCookies() {
return null;
}
@Override
public Map getCookies() {
return null;
}
@Override
public Cookies getDetailedCookies() {
return null;
}
@Override
public String cookie(String name) {
return null;
}
@Override
public String getCookie(String name) {
return null;
}
@Override
public Cookie detailedCookie(String name) {
return null;
}
@Override
public Cookie getDetailedCookie(String name) {
return null;
}
@Override
public String contentType() {
return null;
}
@Override
public String getContentType() {
return null;
}
@Override
public String statusLine() {
return null;
}
@Override
public String getStatusLine() {
return null;
}
@Override
public String sessionId() {
return null;
}
@Override
public String getSessionId() {
return null;
}
@Override
public int statusCode() {
return 0;
}
@Override
public int getStatusCode() {
return 0;
}
@Override
public long time() {
return System.currentTimeMillis();
}
@Override
public long timeIn(TimeUnit timeUnit) {
return System.currentTimeMillis();
}
@Override
public long getTime() {
return System.currentTimeMillis();
}
@Override
public long getTimeIn(TimeUnit timeUnit) {
return System.currentTimeMillis();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy