net.serenitybdd.screenplay.questions.TheValue Maven / Gradle / Ivy
package net.serenitybdd.screenplay.questions;
import net.serenitybdd.screenplay.Question;
/**
* Convenience class to convert an object into a Question
*/
public class TheValue {
public static Question of(ANSWER value) {
return actor -> value;
}
public static Question of(String subject, ANSWER value) {
return new QuestionWithDefinedSubject<>(of(value), subject);
}
}