@Test public void testRequestIn() { InQuery request = null; final Date date = new Date(System.currentTimeMillis()); try { request = new InQuery(QUERY.IN, "var", true); assertTrue(request.isReady()); request = new InQuery(QUERY.NIN, "var", true); assertTrue(request.isReady()); request = new InQuery(QUERY.IN, "var", 1); assertTrue(request.isReady()); request = new InQuery(QUERY.NIN, "var", 1); assertTrue(request.isReady()); request = new InQuery(QUERY.IN, "var", 1.0); assertTrue(request.isReady()); request = new InQuery(QUERY.NIN, "var", 1.0); assertTrue(request.isReady()); request = new InQuery(QUERY.IN, "var", "val"); assertTrue(request.isReady()); request = new InQuery(QUERY.NIN, "var", "val"); assertTrue(request.isReady()); request = new InQuery(QUERY.IN, "var", date); assertTrue(request.isReady()); request = new InQuery(QUERY.NIN, "var", date); assertTrue(request.isReady()); } catch (final InvalidCreateOperationException e) { e.printStackTrace(); fail(e.getMessage()); } try { request = new InQuery(QUERY.SIZE, "var", "val"); fail("Should have raized an exception due to incorrect argument"); } catch (final InvalidCreateOperationException e) { assertNotNull(e); } try { request = new InQuery(QUERY.IN, "", true); fail("Should have raized an exception due to incorrect argument"); } catch (final InvalidCreateOperationException e) { assertNotNull(e); } try { request = new InQuery(QUERY.IN, "", 1); fail("Should have raized an exception due to incorrect argument"); } catch (final InvalidCreateOperationException e) { assertNotNull(e); } try { request = new InQuery(QUERY.IN, "", 1.0); fail("Should have raized an exception due to incorrect argument"); } catch (final InvalidCreateOperationException e) { assertNotNull(e); } try { request = new InQuery(QUERY.IN, "", "val"); fail("Should have raized an exception due to incorrect argument"); } catch (final InvalidCreateOperationException e) { assertNotNull(e); } try { request = new InQuery(QUERY.IN, "", date); 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; }