net.serenitybdd.screenplay.questions.ReverseQuestion Maven / Gradle / Ivy
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));
}
}