@Test public void testFilterParse() { final DeleteParserMultiple request = new DeleteParserMultiple(); final DeleteMultiQuery delete = new DeleteMultiQuery(); try { request.filterParse(delete.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())); delete.addHintFilter(FILTERARGS.CACHE.exactToken()); request.filterParse(delete.getFilter()); assertEquals("Hint should be True", FILTERARGS.CACHE.exactToken(), request.getRequest().getFilter().get(SELECTFILTER.HINT.exactToken()) .get(0).asText()); delete.resetHintFilter(); request.filterParse(delete.getFilter()); assertNull("Hint should be null", request.getRequest().getFilter().get(SELECTFILTER.HINT.exactToken())); delete.setMult(false); request.filterParse(delete.getFilter()); assertEquals(false, request.getRequest().getFilter().get(MULTIFILTER.MULT.exactToken()) .asBoolean()); delete.setMult(true); request.filterParse(delete.getFilter()); assertEquals(true, request.getRequest().getFilter().get(MULTIFILTER.MULT.exactToken()) .asBoolean()); } catch (final InvalidParseOperationException e) { e.printStackTrace(); fail(e.getMessage()); } }
@Override public DeleteMultiQuery getRequest() { return (DeleteMultiQuery) request; }
DeleteParserMultiple extends RequestParserMultiple { @Override public DeleteMultiQuery getRequest() { return (DeleteMultiQuery) request; } }
DeleteParserMultiple extends RequestParserMultiple { @Override public DeleteMultiQuery getRequest() { return (DeleteMultiQuery) request; } DeleteParserMultiple();  DeleteParserMultiple(VarNameAdapter adapter); }
DeleteParserMultiple extends RequestParserMultiple { @Override public DeleteMultiQuery getRequest() { return (DeleteMultiQuery) request; } DeleteParserMultiple();  DeleteParserMultiple(VarNameAdapter adapter); @Override void parse(final JsonNode request); @Override String toString(); @Override DeleteMultiQuery getRequest(); }
DeleteParserMultiple extends RequestParserMultiple { @Override public DeleteMultiQuery getRequest() { return (DeleteMultiQuery) request; } DeleteParserMultiple();  DeleteParserMultiple(VarNameAdapter adapter); @Override void parse(final JsonNode request); @Override String toString(); @Override DeleteMultiQuery getRequest();  }