org.requirementsascode.flowposition.InsteadOf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of requirementsascodecore Show documentation
Show all versions of requirementsascodecore Show documentation
Enables you to define and run executable use case specifications, in your code.
package org.requirementsascode.flowposition;
import java.io.Serializable;
import org.requirementsascode.FlowStep;
import org.requirementsascode.ModelRunner;
public class InsteadOf extends FlowPosition implements Serializable {
private static final long serialVersionUID = -3958653686352185075L;
public InsteadOf(FlowStep step) {
super(step);
}
@Override
protected boolean isRunnerAtRightPositionFor(FlowStep step, ModelRunner modelRunner) {
FlowStep previousStep = step.getPreviousStepInFlow().orElse(null);
After after = new After(previousStep);
return after.test(modelRunner);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy