Package com.taobao.tdhs.client.request

Examples of com.taobao.tdhs.client.request.Filter


    Assert.assertEquals(ClientStatus.OK, r.getStatus());
  }

  @Test
  public void testClientFullGetNullFilter() throws Exception {
    Filter f = new Filter("aaaa", FilterFlag.TDHS_EQ, "cccc");
    TDHSResponse r = client.get(db, table, index, new String[] { "name" },
        new String[][] { { "aaa" } }, FindFlag.TDHS_EQ, 0, 100,
        new Filter[] { f });
    Assert.assertEquals(ClientStatus.NOT_FOUND, r.getStatus());
  }
View Full Code Here


    Assert.assertEquals(ClientStatus.NOT_FOUND, r.getStatus());
  }

  @Test
  public void testClientSpecialChar() throws Exception {
    Filter f = new Filter("aaaa", FilterFlag.TDHS_EQ,
        "~!@#$%^&*()_+-={}[]:\\\";'<>?,./");
    TDHSResponse r = client.get("~!@#$%^&*()_+-={}[]:\\\";'<>?,./",
        "~!@#$%^&*()_+-={}[]:\\\";'<>?,./",
        "~!@#$%^&*()_+-={}[]:\\\";'<>?,./",
        new String[] { "~!@#$%^&*()_+-={}[]:\\\";'<>?,./" },
View Full Code Here

TOP

Related Classes of com.taobao.tdhs.client.request.Filter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.