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

net.thucydides.core.model.ConcreteTestStep Maven / Gradle / Ivy

There is a newer version: 0.9.275
Show newest version
package net.thucydides.core.model;

import java.util.Arrays;
import java.util.List;

/**
 * A test step that is actually executed, as opposed to a grouping of test steps.
 *
 * @author johnsmart
 */
public class ConcreteTestStep extends TestStep {

    private TestResult result;

    public ConcreteTestStep() {
        super();
    }

    public ConcreteTestStep(final String description) {
        super(description);
    }


    /**
     * Each test step has a result, indicating the outcome of this step.
     */
    public void setResult(final TestResult result) {
        this.result = result;
    }

    public TestResult getResult() {
        return result;
    }


    @Override
    public List getFlattenedSteps() {
        return Arrays.asList(this);
    }

    @Override
    public boolean isAGroup() {
        return false;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy