Search in sources :

Example 11 with PropertyFilter

use of com.fasterxml.jackson.databind.ser.PropertyFilter in project gravitee-management-rest-api by gravitee-io.

the class ApiService_FindByIdTest method setUp.

@Before
public void setUp() {
    PropertyFilter apiMembershipTypeFilter = new ApiPermissionFilter();
    objectMapper.setFilterProvider(new SimpleFilterProvider(Collections.singletonMap("apiMembershipTypeFilter", apiMembershipTypeFilter)));
}
Also used : SimpleFilterProvider(com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider) PropertyFilter(com.fasterxml.jackson.databind.ser.PropertyFilter) ApiPermissionFilter(io.gravitee.management.service.jackson.filter.ApiPermissionFilter) Before(org.junit.Before)

Example 12 with PropertyFilter

use of com.fasterxml.jackson.databind.ser.PropertyFilter in project gravitee-management-rest-api by gravitee-io.

the class ApiService_FindByUserTest method setUp.

@Before
public void setUp() {
    PropertyFilter apiMembershipTypeFilter = new ApiPermissionFilter();
    objectMapper.setFilterProvider(new SimpleFilterProvider(Collections.singletonMap("apiMembershipTypeFilter", apiMembershipTypeFilter)));
}
Also used : SimpleFilterProvider(com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider) PropertyFilter(com.fasterxml.jackson.databind.ser.PropertyFilter) ApiPermissionFilter(io.gravitee.management.service.jackson.filter.ApiPermissionFilter) Before(org.junit.Before)

Example 13 with PropertyFilter

use of com.fasterxml.jackson.databind.ser.PropertyFilter in project gravitee-management-rest-api by gravitee-io.

the class ApiService_StopTest method setUp.

@Before
public void setUp() {
    PropertyFilter apiMembershipTypeFilter = new ApiPermissionFilter();
    objectMapper.setFilterProvider(new SimpleFilterProvider(Collections.singletonMap("apiMembershipTypeFilter", apiMembershipTypeFilter)));
}
Also used : SimpleFilterProvider(com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider) PropertyFilter(com.fasterxml.jackson.databind.ser.PropertyFilter) ApiPermissionFilter(io.gravitee.management.service.jackson.filter.ApiPermissionFilter) Before(org.junit.Before)

Aggregations

PropertyFilter (com.fasterxml.jackson.databind.ser.PropertyFilter)13 SimpleFilterProvider (com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider)11 ApiPermissionFilter (io.gravitee.management.service.jackson.filter.ApiPermissionFilter)9 Before (org.junit.Before)7 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 SimpleBeanPropertyFilter (com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter)2 MyDtoWithFilter (com.baeldung.jackson.dtos.MyDtoWithFilter)1 JsonGenerator (com.fasterxml.jackson.core.JsonGenerator)1 SerializerProvider (com.fasterxml.jackson.databind.SerializerProvider)1 BeanPropertyWriter (com.fasterxml.jackson.databind.ser.BeanPropertyWriter)1 FilterProvider (com.fasterxml.jackson.databind.ser.FilterProvider)1 PropertyWriter (com.fasterxml.jackson.databind.ser.PropertyWriter)1 GraviteeMapper (io.gravitee.definition.jackson.datatype.GraviteeMapper)1 Path (io.gravitee.definition.model.Path)1 Policy (io.gravitee.definition.model.Policy)1 io.gravitee.management.model (io.gravitee.management.model)1 Api (io.gravitee.repository.management.model.Api)1 Membership (io.gravitee.repository.management.model.Membership)1 Matchers.containsString (org.hamcrest.Matchers.containsString)1 Test (org.junit.Test)1