@Test public void testFilterParse() { final UpdateParserMultiple request = new UpdateParserMultiple(); final UpdateMultiQuery update = new UpdateMultiQuery(); try { request.filterParse(update.getFilter()); assertNull("Hint should be null", request.getRequest().getFilter().get(SELECTFILTER.HINT.exactToken())); assertNull("Limit should be null", request.getRequest().getFilter() .get(SELECTFILTER.LIMIT.exactToken())); assertNull("Offset should be null", request.getRequest().getFilter() .get(SELECTFILTER.OFFSET.exactToken())); assertNull("OrderBy should be null", request.getRequest().getFilter() .get(SELECTFILTER.ORDERBY.exactToken())); assertNull("Mult should be null", request.getRequest().getFilter().get(MULTIFILTER.MULT.exactToken())); update.addHintFilter(FILTERARGS.CACHE.exactToken()); request.filterParse(update.getFilter()); assertEquals("Hint should be True", FILTERARGS.CACHE.exactToken(), request.getRequest().getFilter().get(SELECTFILTER.HINT.exactToken()) .get(0).asText()); update.resetHintFilter(); request.filterParse(update.getFilter()); assertNull("Hint should be null", request.getRequest().getFilter().get(SELECTFILTER.HINT.exactToken())); update.setMult(false); request.filterParse(update.getFilter()); assertEquals(false, request.getRequest().getFilter().get(MULTIFILTER.MULT.exactToken()) .asBoolean()); update.setMult(true); request.filterParse(update.getFilter()); assertEquals(true, request.getRequest().getFilter().get(MULTIFILTER.MULT.exactToken()) .asBoolean()); } catch (final InvalidParseOperationException e) { e.printStackTrace(); fail(e.getMessage()); } }
@Override public UpdateMultiQuery getRequest() { return (UpdateMultiQuery) request; }
UpdateParserMultiple extends RequestParserMultiple { @Override public UpdateMultiQuery getRequest() { return (UpdateMultiQuery) request; } }
UpdateParserMultiple extends RequestParserMultiple { @Override public UpdateMultiQuery getRequest() { return (UpdateMultiQuery) request; } UpdateParserMultiple();  UpdateParserMultiple(VarNameAdapter adapter); }
UpdateParserMultiple extends RequestParserMultiple { @Override public UpdateMultiQuery getRequest() { return (UpdateMultiQuery) request; } UpdateParserMultiple();  UpdateParserMultiple(VarNameAdapter adapter); @Override void parse(final JsonNode request); @Override String toString(); @Override UpdateMultiQuery getRequest(); }
UpdateParserMultiple extends RequestParserMultiple { @Override public UpdateMultiQuery getRequest() { return (UpdateMultiQuery) request; } UpdateParserMultiple();  UpdateParserMultiple(VarNameAdapter adapter); @Override void parse(final JsonNode request); @Override String toString(); @Override UpdateMultiQuery getRequest();  }