@Test public void testRequestCompareLong() { CompareQuery request = null; try { request = new CompareQuery(QUERY.LT, "var", 1); assertTrue(request.isReady()); request = new CompareQuery(QUERY.LTE, "var", 1); assertTrue(request.isReady()); request = new CompareQuery(QUERY.GT, "var", 1); assertTrue(request.isReady()); request = new CompareQuery(QUERY.GTE, "var", 1); assertTrue(request.isReady()); request = new CompareQuery(QUERY.EQ, "var", 1); assertTrue(request.isReady()); request = new CompareQuery(QUERY.NE, "var", 1); assertTrue(request.isReady()); request = new CompareQuery(QUERY.SIZE, "var", 1); assertTrue(request.isReady()); } catch (final InvalidCreateOperationException e) { e.printStackTrace(); fail(e.getMessage()); } try { request = new CompareQuery(QUERY.AND, "var", 1); fail("Should have raized an exception due to incorrect argument"); } catch (final InvalidCreateOperationException e) { assertNotNull(e); } try { request = new CompareQuery(QUERY.LT, "", 1); fail("Should have raized an exception due to incorrect argument"); } catch (final InvalidCreateOperationException e) { assertNotNull(e); } }
public boolean isReady() { return ready; }
Query { public boolean isReady() { return ready; } }
Query { public boolean isReady() { return ready; } protected  Query(); }
Query { public boolean isReady() { return ready; } protected  Query(); void clean(); final Query setExactDepthLimit(final int exactdepth); final Query setRelativeDepthLimit(final int relativedepth); final Query setDepthLimit(final int relativedepth); ObjectNode getCurrentQuery(); JsonNode getNode(String key); JsonNode getCurrentObject(); QUERY getQUERY(); boolean isReady(); Query setExtraInfo(int val); int getExtraInfo(); final boolean isFullText(); final Query setFullText(boolean isFullText); final int getParserExactdepth(); final Query setParserExactdepth(int exactdepth); final int getParserRelativeDepth(); final Query setParserRelativeDepth(int relativedepth); @Override String toString(); }
Query { public boolean isReady() { return ready; } protected  Query(); void clean(); final Query setExactDepthLimit(final int exactdepth); final Query setRelativeDepthLimit(final int relativedepth); final Query setDepthLimit(final int relativedepth); ObjectNode getCurrentQuery(); JsonNode getNode(String key); JsonNode getCurrentObject(); QUERY getQUERY(); boolean isReady(); Query setExtraInfo(int val); int getExtraInfo(); final boolean isFullText(); final Query setFullText(boolean isFullText); final int getParserExactdepth(); final Query setParserExactdepth(int exactdepth); final int getParserRelativeDepth(); final Query setParserRelativeDepth(int relativedepth); @Override String toString(); static final String DATE; }