use of uk.gov.ida.integrationtest.hub.samlengine.builders.AttributeQueryRequestBuilder in project verify-hub by alphagov.
the class MatchingServiceRequestGeneratorResourceTest method should_createAttributeQueryRequest.
@Test
public void should_createAttributeQueryRequest() throws Exception {
configStub.setupCertificatesForEntity(TEST_RP_MS);
Response response = getAttributeQuery(new AttributeQueryRequestBuilder().build());
AttributeQueryContainerDto entity = response.readEntity(AttributeQueryContainerDto.class);
assertThat(response.getStatus()).isEqualTo(Response.Status.OK.getStatusCode());
assertThat(entity.getSamlRequest()).isNotNull();
}
Aggregations