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

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

There is a newer version: 2.8
Show newest version
package ru.integrations.check.condition;

import io.restassured.response.Response;
import lombok.RequiredArgsConstructor;
import org.hamcrest.Matcher;

/**
 * Класс для извлечения значения по HtmlPath.
 */
@RequiredArgsConstructor
public class BodyHtmlCondition implements Condition {
    private final Matcher htmlPath;

    /**
     * Получение значения по htmlPath.
     *
     * @param response Запрос.
     */
    @Override
    public void check(Response response) {
        response.then()
                .body(htmlPath);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy