use of org.apache.accumulo.core.data.thrift.TRange in project accumulo by apache.
the class RangeTest method testThrift_Check.
public void testThrift_Check() {
Range r = new Range(new Key(new Text("soup")), true, false, new Key(new Text("nuts")), true, false);
TRange tr = r.toThrift();
try {
@SuppressWarnings("unused") Range r2 = new Range(tr);
fail("Thrift constructor allowed invalid range");
} catch (IllegalArgumentException exc) {
/* good! */
}
}
Aggregations