net.serenitybdd.screenplay.rest.questions.TheResponseStatusCode Maven / Gradle / Ivy
package net.serenitybdd.screenplay.rest.questions;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.annotations.Subject;
@Subject("the response status")
public class TheResponseStatusCode implements Question {
@Override
public Integer answeredBy(Actor actor) {
return LastResponse.received().answeredBy(actor).statusCode();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy