Search in sources :

Example 11 with Criteria

use of com.cinchapi.concourse.lang.Criteria in project concourse by cinchapi.

the class CON672 method reproTag.

@Test
public void reproTag() {
    Tag value = Tag.create("a=b");
    Criteria criteria = Criteria.where().key("foo").operator(Operator.EQUALS).value(value);
    System.out.println(criteria.ccl());
    client.find(criteria);
    // lack of Exception means the test passes
    Assert.assertTrue(true);
}
Also used : Tag(com.cinchapi.concourse.Tag) Criteria(com.cinchapi.concourse.lang.Criteria) ConcourseIntegrationTest(com.cinchapi.concourse.test.ConcourseIntegrationTest) Test(org.junit.Test)

Aggregations

Criteria (com.cinchapi.concourse.lang.Criteria)11 Test (org.junit.Test)10 ConcourseIntegrationTest (com.cinchapi.concourse.test.ConcourseIntegrationTest)6 ConditionTree (com.cinchapi.ccl.syntax.ConditionTree)1 Association (com.cinchapi.common.collect.Association)1 Tag (com.cinchapi.concourse.Tag)1 TCriteria (com.cinchapi.concourse.thrift.TCriteria)1 TOrder (com.cinchapi.concourse.thrift.TOrder)1 ByteBuffer (java.nio.ByteBuffer)1 Collection (java.util.Collection)1