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

net.serenitybdd.screenplay.questions.ReverseQuestion Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
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> listQuestion;

    public ReverseQuestion(Question> listQuestion) {
        this.listQuestion = listQuestion;
    }

    @Override
    public List answeredBy(Actor actor) {
        return NewList.reverse(listQuestion.answeredBy(actor));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy