Exemplo n.º 1
0
 public FilterValidator runUriOrderBy(final String path, final String query)
     throws UriParserException, UriValidationException {
   final UriInfo uriInfo = new Parser(edm, odata).parseUri(path, query, null);
   assertTrue(
       "Filtervalidator can only be used on resourcePaths",
       uriInfo.getKind() == UriInfoKind.resource);
   orderBy = uriInfo.getOrderByOption();
   return this;
 }
Exemplo n.º 2
0
  public FilterValidator runUriOrderBy(final String path, final String query)
      throws UriParserException {
    Parser parser = new Parser();
    UriInfo uriInfo = null;

    uriInfo = parser.parseUri(path, query, null, edm);

    if (uriInfo.getKind() != UriInfoKind.resource) {
      fail("Filtervalidator can only be used on resourcePaths");
    }

    setOrderBy((OrderByOptionImpl) uriInfo.getOrderByOption());
    return this;
  }