use of eu.europa.ec.fisheries.schema.mobileterminal.types.v1.MobileTerminalListQuery in project UVMS-Docker by UnionVMS.
the class MobileTerminalRestIT method getMobileTerminalListTest.
/**
* Gets the mobile terminal list test.
*
* @return the mobile terminal list test
* @throws Exception
* the exception
*/
@Test
public void getMobileTerminalListTest() throws Exception {
MobileTerminalListQuery queryRequest = new MobileTerminalListQuery();
ListPagination pagination = new ListPagination();
pagination.setListSize(100);
pagination.setPage(1);
queryRequest.setPagination(pagination);
MobileTerminalSearchCriteria criteria = new MobileTerminalSearchCriteria();
criteria.setIsDynamic(true);
queryRequest.setMobileTerminalSearchCriteria(criteria);
final HttpResponse response = Request.Post(getBaseUrl() + "mobileterminal/rest/mobileterminal/list").setHeader("Content-Type", "application/json").setHeader("Authorization", getValidJwtToken()).bodyByteArray(writeValueAsString(queryRequest).getBytes()).execute().returnResponse();
Map<String, Object> dataMap = checkSuccessResponseReturnMap(response);
}
Aggregations