
net.serenitybdd.screenplay.questions.ReverseQuestion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serenity-screenplay Show documentation
Show all versions of serenity-screenplay Show documentation
Support for the User Journey pattern in Serenity
package net.serenitybdd.screenplay.questions;
import net.serenitybdd.model.collect.NewList;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.annotations.Subject;
import java.util.List;
@Subject("the minimum value of #listQuestion")
public class ReverseQuestion implements Question> {
private final Question extends List> listQuestion;
public ReverseQuestion(Question extends List> listQuestion) {
this.listQuestion = listQuestion;
}
@Override
public List answeredBy(Actor actor) {
return NewList.reverse(listQuestion.answeredBy(actor));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy