BinaryValue wrapped = BinaryValue.create(buff.array());
testValues.add(wrapped);
DtUpdateOperation update =
new DtUpdateOperation.Builder(location)
.withOp(new SetOp().add(wrapped))
.withReturnBody(true)
.build();
cluster.execute(update);
DtUpdateOperation.Response resp = update.get();
ctx = resp.getContext();
set = resp.getCrdtElement().getAsSet();
}
assertEquals(iterations, set.view().size());
assertEquals(testValues, set.view());
for (BinaryValue setElement : testValues)
{
DtUpdateOperation update =
new DtUpdateOperation.Builder(location)
.withOp(new SetOp().remove(setElement))
.withContext(ctx)
.build();
cluster.execute(update);
update.get();