net.serenitybdd.screenplay.QuestionBuilder Maven / Gradle / Ivy
package net.serenitybdd.screenplay;
import net.serenitybdd.screenplay.questions.QuestionWithDefinedSubject;
public class QuestionBuilder {
private final String subject;
QuestionBuilder(String subject) {
this.subject = subject;
}
public Question answeredBy(Question questionToAsk) {
return new QuestionWithDefinedSubject<>(questionToAsk, subject);
}
}