use of org.apache.ignite.internal.table.distributed.command.UpsertCommand in project ignite-3 by apache.
the class PartitionCommandListenerTest method upsert.
/**
* Upserts rows.
*/
private void upsert() {
Timestamp ts = Timestamp.nextVersion();
commandListener.onWrite(iterator((i, clo) -> {
when(clo.command()).thenReturn(new UpsertCommand(getTestRow(i, i), ts));
doAnswer(invocation -> {
assertNull(invocation.getArgument(0));
return null;
}).when(clo).result(any());
}));
}
Aggregations