
net.serenitybdd.screenplay.questions.TheValue 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.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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy