All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.integrations.check.condition.StatusCodeCondition Maven / Gradle / Ivy

The newest version!
package ru.integrations.check.condition;

import io.restassured.response.Response;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

/**
 * Check statusCode.
 */
@RequiredArgsConstructor
public class StatusCodeCondition implements Condition {
    private final int expectedStatusCode;

    /**
     * Check equals status code in status code in response.
     */
    @Override
    public void check(Response response) {
        response.then()
                .statusCode(expectedStatusCode);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy