@Test public void parseSingleSort_Error() { String sortExpression = "sort (+- employee.name) "; thrown.expect(SortParsingException.class); new SortTokenParserAdapter().parse(sortExpression); }
public SortNodeList parse(String sortExpression) { try { return createParser(sortExpression).parse(); } catch (ParseException | Error e) { throw new SortParsingException(e); } }
SortTokenParserAdapter { public SortNodeList parse(String sortExpression) { try { return createParser(sortExpression).parse(); } catch (ParseException | Error e) { throw new SortParsingException(e); } } }
SortTokenParserAdapter { public SortNodeList parse(String sortExpression) { try { return createParser(sortExpression).parse(); } catch (ParseException | Error e) { throw new SortParsingException(e); } }  }
SortTokenParserAdapter { public SortNodeList parse(String sortExpression) { try { return createParser(sortExpression).parse(); } catch (ParseException | Error e) { throw new SortParsingException(e); } }  SortNodeList parse(String sortExpression); }
SortTokenParserAdapter { public SortNodeList parse(String sortExpression) { try { return createParser(sortExpression).parse(); } catch (ParseException | Error e) { throw new SortParsingException(e); } }  SortNodeList parse(String sortExpression);  }