Search in sources :

Example 1 with AttributeQueryRequestBuilder

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();
}
Also used : Response(javax.ws.rs.core.Response) AttributeQueryContainerDto(uk.gov.ida.hub.samlengine.contracts.AttributeQueryContainerDto) AttributeQueryRequestBuilder(uk.gov.ida.integrationtest.hub.samlengine.builders.AttributeQueryRequestBuilder) Test(org.junit.Test)

Aggregations

Response (javax.ws.rs.core.Response)1 Test (org.junit.Test)1 AttributeQueryContainerDto (uk.gov.ida.hub.samlengine.contracts.AttributeQueryContainerDto)1 AttributeQueryRequestBuilder (uk.gov.ida.integrationtest.hub.samlengine.builders.AttributeQueryRequestBuilder)1