use of uk.gov.ida.saml.core.test.builders.StatusCodeBuilder in project verify-hub by alphagov.
the class ResponseValidatorTestHelper method createStatus.
public static Status createStatus(String statusCodeValue, StatusCode subStatusCode) {
StatusCodeBuilder statusCodeBuilder = aStatusCode().withValue(statusCodeValue);
StatusCode statusCode = subStatusCode == null ? statusCodeBuilder.build() : statusCodeBuilder.withSubStatusCode(subStatusCode).build();
return aStatus().withStatusCode(statusCode).build();
}
Aggregations