use of org.hisp.dhis.node.transformers.PluckNodeTransformer in project dhis2-core by dhis2.
the class DefaultFieldFilterServiceTest method setUp.
@BeforeEach
public void setUp() {
final Set<NodeTransformer> nodeTransformers = new HashSet<>();
nodeTransformers.add(new PluckNodeTransformer());
final SchemaService schemaService = new DefaultSchemaService(new DefaultPropertyIntrospectorService(new JacksonPropertyIntrospector()), sessionFactory);
CacheProvider cacheProvider = mock(CacheProvider.class);
when(cacheProvider.createPropertyTransformerCache()).thenReturn(new NoOpCache<>());
service = new DefaultFieldFilterService(new DefaultFieldParser(), schemaService, aclService, currentUserService, attributeService, cacheProvider, userGroupService, userService, nodeTransformers);
service.init();
}
Aggregations