use of io.crnk.core.queryspec.QuerySpecDeserializerContext in project crnk-framework by crnk-project.
the class DefaultQuerySpecDeserializerTestBase method setup.
@Before
public void setup() {
super.setup();
deserializerContext = new QuerySpecDeserializerContext() {
@Override
public ResourceRegistry getResourceRegistry() {
return resourceRegistry;
}
@Override
public TypeParser getTypeParser() {
return moduleRegistry.getTypeParser();
}
};
deserializer = new DefaultQuerySpecDeserializer();
deserializer.init(deserializerContext);
taskInformation = resourceRegistry.getEntry(Task.class).getResourceInformation();
taskWithPagingBehaviorInformation = resourceRegistry.getEntry(TaskWithPagingBehavior.class).getResourceInformation();
}
Aggregations