/** * Pretend client did some ops at the given op versions. * @throws OperationException * @throws TransformException */ private TestConfig clientDoOps(WaveletOperation ... ops) throws OperationException, TransformException { for (WaveletOperation op : ops) { clientMock.addClientOperation(op); } clientMock.flush(); return this; }
/** * Pretend client did some ops at the given op versions. * @throws OperationException * @throws TransformException */ private TestConfig clientDoOps(WaveletOperation ... ops) throws OperationException, TransformException { for (WaveletOperation op : ops) { clientMock.addClientOperation(op); } clientMock.flush(); return this; }
/** * Pretend client did some doc ops. * * @throws TransformException */ public TestConfig clientDoDocOps(String... blipIds) throws OperationException, TransformException { for (String b : blipIds) { clientMock.addClientOperation(noOpDocOp(b)); } clientMock.flush(); return this; }
/** * Pretend client did some doc ops. * * @throws TransformException */ public TestConfig clientDoDocOps(String... blipIds) throws OperationException, TransformException { for (String b : blipIds) { clientMock.addClientOperation(noOpDocOp(b)); } clientMock.flush(); return this; }
/** * Pretend client did some ops. * * Assumption: Noops are not merged in OperationMergingDelta. If they are, then tests * will break as they count the number of ops sent from the client to the server. * * @throws TransformException */ public TestConfig clientDoOps(int numOps) throws OperationException, TransformException { for (int i = 0; i < numOps; i++) { clientMock.addClientOperation(new NoOp(new WaveletOperationContext( clientMock.getParticipantId(), 0L, 1L))); } clientMock.flush(); return this; }
/** * Pretend client did some ops. * * Assumption: Noops are not merged in OperationMergingDelta. If they are, then tests * will break as they count the number of ops sent from the client to the server. * * @throws TransformException */ public TestConfig clientDoOps(int numOps) throws OperationException, TransformException { for (int i = 0; i < numOps; i++) { clientMock.addClientOperation(new NoOp(new WaveletOperationContext( clientMock.getParticipantId(), 0L, 1L))); } clientMock.flush(); return this; }