/** * Check client got nothing from the server. */ public TestConfig checkClientGotOps() { clientReceiveOpFromCC(false); ArrayList<WaveletOperation> clientGot = clientMock.getServerOperations(); assertEquals(0, clientGot.size()); return this; }
/** * Check client got nothing from the server. */ public TestConfig checkClientGotOps() { clientReceiveOpFromCC(false); ArrayList<WaveletOperation> clientGot = clientMock.getServerOperations(); assertEquals(0, clientGot.size()); return this; }
/** * Check client got operations from the server with the version before the first op and * the given number of ops. */ public TestConfig checkClientGotOps(int startVersion, int numOps) { clientReceiveOpFromCC(numOps != 0); ArrayList<WaveletOperation> clientGot = clientMock.getServerOperations(); assertEquals(numOps, clientGot.size()); for (int i = 0; i < numOps; i++) { assertEquals(1, clientGot.get(i).getContext().getVersionIncrement()); } // Clear the client recieved ops in clientMock clientGot.clear(); return this; }
/** * Check client got operations from the server with the version before the first op and * the given number of ops. */ public TestConfig checkClientGotOps(int startVersion, int numOps) { clientReceiveOpFromCC(numOps != 0); ArrayList<WaveletOperation> clientGot = clientMock.getServerOperations(); assertEquals(numOps, clientGot.size()); for (int i = 0; i < numOps; i++) { assertEquals(1, clientGot.get(i).getContext().getVersionIncrement()); } // Clear the client recieved ops in clientMock clientGot.clear(); return this; }