use of net.opengis.cat.csw.v_2_0_2.AcknowledgementType in project ddf by codice.
the class CswSubscriptionEndpointTest method testCreateRecordsSubscriptionGET.
@Test
public void testCreateRecordsSubscriptionGET() throws Exception {
GetRecordsRequest getRecordsRequest = createDefaultGetRecordsRequest();
getRecordsRequest.setResponseHandler(RESPONSE_HANDLER_URL);
getRecordsRequest.setVersion("");
Response response = cswSubscriptionEndpoint.createRecordsSubscription(getRecordsRequest);
AcknowledgementType createAck = (AcknowledgementType) response.getEntity();
assertThat(createAck, notNullValue());
verify(mockContext).registerService(eq(Subscription.class.getName()), any(Subscription.class), any(Dictionary.class));
}
Aggregations