Search in sources :

Example 1 with TOrderComponent

use of com.cinchapi.concourse.thrift.TOrderComponent in project concourse by cinchapi.

the class JavaThriftBridgeTest method testOrderComponentWithStringTimestampConvert.

@Test
public void testOrderComponentWithStringTimestampConvert() {
    OrderComponent component = new OrderComponent("a", Timestamp.fromString("yesterday"), Direction.ASCENDING);
    TOrderComponent tcomponent = JavaThriftBridge.convert(component);
    Assert.assertTrue(tcomponent.getTimestamp().getType() == Type.STRING);
}
Also used : OrderComponent(com.cinchapi.concourse.lang.sort.OrderComponent) TOrderComponent(com.cinchapi.concourse.thrift.TOrderComponent) TOrderComponent(com.cinchapi.concourse.thrift.TOrderComponent) Test(org.junit.Test)

Aggregations

OrderComponent (com.cinchapi.concourse.lang.sort.OrderComponent)1 TOrderComponent (com.cinchapi.concourse.thrift.TOrderComponent)1 Test (org.junit.Test)1