@Test public void parseLimit_LexicalError_MispelledLimit() throws Exception { String expression = "limits(0, 10)"; LimitParserAdapter limitParser = new LimitParserAdapter(); thrown.expect(LimitParsingException.class); limitParser.parse(expression); }
public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } }
LimitParserAdapter { public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } } }
LimitParserAdapter { public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } }  }
LimitParserAdapter { public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } }  PageNode parse(String limitExpression); }
LimitParserAdapter { public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } }  PageNode parse(String limitExpression);  }