use of eu.europa.ec.fisheries.schema.audit.search.v1.AuditLogListQuery in project UVMS-Docker by UnionVMS.
the class AuditRestIT method getListByQueryTest.
/**
* Gets the config search fields test.
*
* @return the config search fields test
* @throws Exception
* the exception
*/
@Test
public void getListByQueryTest() throws Exception {
AuditLogListQuery auditLogListQuery = new AuditLogListQuery();
ListPagination listPagination = new ListPagination();
listPagination.setPage(BigInteger.valueOf(1));
listPagination.setListSize(BigInteger.valueOf(25));
auditLogListQuery.setPagination(listPagination);
final HttpResponse response = Request.Post(getBaseUrl() + "audit/rest/audit/list").setHeader("Content-Type", "application/json").setHeader("Authorization", getValidJwtToken()).bodyByteArray(writeValueAsString(auditLogListQuery).getBytes()).execute().returnResponse();
Map<String, Object> dataMap = checkSuccessResponseReturnMap(response);
}
Aggregations