@Test public void testNullFilterString() throws Exception { thrown.expect(FilterParser.FilterStringSyntaxException.class); thrown.expectMessage("filter parsing ended with no result"); filterParser.parse(null); }
public Node parse(String filterString) throws Exception { if (filterString == null) { throw new FilterStringSyntaxException("filter parsing ended with no result"); } return parse(filterString.getBytes(DEFAULT_CHARSET)); }
FilterParser { public Node parse(String filterString) throws Exception { if (filterString == null) { throw new FilterStringSyntaxException("filter parsing ended with no result"); } return parse(filterString.getBytes(DEFAULT_CHARSET)); } }
FilterParser { public Node parse(String filterString) throws Exception { if (filterString == null) { throw new FilterStringSyntaxException("filter parsing ended with no result"); } return parse(filterString.getBytes(DEFAULT_CHARSET)); } FilterParser(); }
FilterParser { public Node parse(String filterString) throws Exception { if (filterString == null) { throw new FilterStringSyntaxException("filter parsing ended with no result"); } return parse(filterString.getBytes(DEFAULT_CHARSET)); } FilterParser(); Node parse(String filterString); }
FilterParser { public Node parse(String filterString) throws Exception { if (filterString == null) { throw new FilterStringSyntaxException("filter parsing ended with no result"); } return parse(filterString.getBytes(DEFAULT_CHARSET)); } FilterParser(); Node parse(String filterString); static final String DEFAULT_CHARSET; }