/** * Sets up that the transform call after all existing expectations must be one * with a client input delta consisting of the given ops. * * @return the expectation which should be set to either * {@link Expectation#echo()} the client input delta or return some * transformed delta using * {@link Expectation#transformTo(WaveletOperation...)}. */ public Expectation expect(WaveletOperation... ops) { Expectation expectation = new Expectation(ops); expectations.addLast(expectation); return expectation; }
/** * Sets up that the transform call after all existing expectations must be one * with a client input delta consisting of the given ops. * * @return the expectation which should be set to either * {@link Expectation#echo()} the client input delta or return some * transformed delta using * {@link Expectation#transformTo(WaveletOperation...)}. */ public Expectation expect(WaveletOperation... ops) { Expectation expectation = new Expectation(ops); expectations.addLast(expectation); return expectation; }