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