com.chutneytesting.action.assertion.AssertAction Maven / Gradle / Ivy
package com.chutneytesting.action.assertion;
import static com.chutneytesting.action.spi.validation.ActionValidatorsUtils.notEmptyListValidation;
import static com.chutneytesting.action.spi.validation.Validator.getErrorsFrom;
import static java.util.Collections.emptyList;
import static java.util.Optional.ofNullable;
import com.chutneytesting.action.spi.Action;
import com.chutneytesting.action.spi.ActionExecutionResult;
import com.chutneytesting.action.spi.injectable.Input;
import com.chutneytesting.action.spi.injectable.Logger;
import com.chutneytesting.action.spi.injectable.StepDefinitionSpi;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.IntStream;
/**
* Input are evaluated (SPeL) before entering the action
*/
public class AssertAction implements Action {
private final String ASSERTS_INPUT_LABEL = "asserts";
private final Logger logger;
private final List