use of com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider 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)));
}
use of com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider 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)));
}
use of com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider 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)));
}
use of com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider in project candlepin by candlepin.
the class ProductDataTest method createObjects.
@Before
public void createObjects() {
this.mapper = new ObjectMapper();
SimpleFilterProvider filterProvider = new SimpleFilterProvider();
filterProvider.setDefaultFilter(new DynamicPropertyFilter());
this.mapper.setFilters(filterProvider);
}
use of com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider in project candlepin by candlepin.
the class PoolTest method createObjects.
@Before
public void createObjects() {
this.mapper = new ObjectMapper();
SimpleFilterProvider filterProvider = new SimpleFilterProvider();
filterProvider = filterProvider.addFilter("PoolFilter", new PoolEventFilter());
filterProvider = filterProvider.addFilter("OwnerFilter", new HateoasBeanPropertyFilter());
filterProvider.setDefaultFilter(new DynamicPropertyFilter());
this.mapper.setFilters(filterProvider);
beginTransaction();
try {
owner = new Owner("testowner");
ownerCurator.create(owner);
prod1 = this.createProduct(owner);
prod2 = this.createProduct(owner);
Set<Product> providedProducts = new HashSet<>();
providedProducts.add(prod2);
pool = TestUtil.createPool(owner, prod1, providedProducts, 1000);
subscription = TestUtil.createSubscription(owner, prod1);
subscription.setId(Util.generateDbUUID());
pool.setSourceSubscription(new SourceSubscription(subscription.getId(), "master"));
poolCurator.create(pool);
owner = pool.getOwner();
consumer = this.createConsumer(owner);
productCurator.create(prod1);
poolCurator.create(pool);
commitTransaction();
} catch (RuntimeException e) {
rollbackTransaction();
throw e;
}
}
Aggregations