use of io.crnk.legacy.queryParams.context.SimpleQueryParamsParserContext in project crnk-framework by crnk-project.
the class DefaultQueryParamsParserTest method parseQueryParams.
private QueryParams parseQueryParams() {
TestResourceInformationProvider infoBuilder = new TestResourceInformationProvider();
infoBuilder.init(new ResourceInformationProviderContext() {
@Override
public String getResourceType(Class<?> clazz) {
throw new UnsupportedOperationException();
}
@Override
public boolean accept(Class<?> type) {
throw new UnsupportedOperationException();
}
@Override
public TypeParser getTypeParser() {
return new TypeParser();
}
@Override
public InformationBuilder getInformationBuilder() {
throw new UnsupportedOperationException();
}
@Override
public ObjectMapper getObjectMapper() {
throw new UnsupportedOperationException();
}
});
return parser.parse(new SimpleQueryParamsParserContext(queryParams, infoBuilder.build(TestResource.class)));
}
use of io.crnk.legacy.queryParams.context.SimpleQueryParamsParserContext in project crnk-framework by crnk-project.
the class JsonApiQueryParamsParserTest method parseQueryParams.
private QueryParams parseQueryParams() {
TestResourceInformationProvider infoBuilder = new TestResourceInformationProvider();
infoBuilder.init(new ResourceInformationProviderContext() {
@Override
public String getResourceType(Class<?> clazz) {
throw new UnsupportedOperationException();
}
@Override
public boolean accept(Class<?> type) {
throw new UnsupportedOperationException();
}
@Override
public TypeParser getTypeParser() {
return new TypeParser();
}
@Override
public InformationBuilder getInformationBuilder() {
throw new UnsupportedOperationException();
}
@Override
public ObjectMapper getObjectMapper() {
throw new UnsupportedOperationException();
}
});
return parser.parse(new SimpleQueryParamsParserContext(queryParams, infoBuilder.build(TestResource.class)));
}
Aggregations