Examples of noOpDocOp()


Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

        .setWaveletId(GENERATED_WAVELET_ID).addDelta(delta1));

    assertEquals(2, createdWavelet.getParticipantIds().size());

    // create an empty blip edit (i.e. implicit creation) and expect flush
    TransformedWaveletDelta delta2 = util.delta(2L, util.noOpDocOp(GENERATED_BLIP_ID));
    openCallback.onUpdate(new FakeWaveViewServiceUpdate()
        .setWaveletId(GENERATED_WAVELET_ID).addDelta(delta2));
    doc.expectedCall(MockCcDocument.MethodCall.FLUSH);
    doc.expectedCall(MockCcDocument.MethodCall.CONSUME);
    doc.expectedNothing();
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    doc.expectedCall(MockCcDocument.MethodCall.CONSUME);
    doc.expectedNothing();

    // now hold back flush on another server op
    doc.flush_return = false;
    TransformedWaveletDelta delta3 = util.delta(3L, util.noOpDocOp(GENERATED_BLIP_ID));
    openCallback.onUpdate(new FakeWaveViewServiceUpdate()
        .setWaveletId(GENERATED_WAVELET_ID).addDelta(delta3));
    MockCcDocument.MethodCallContext callContext =
        doc.expectedCall(MockCcDocument.MethodCall.FLUSH);
    doc.expectedNothing();
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

   */
  public void testComposistionAfterTransform() throws TransformException {
    DeltaTestUtil util = new DeltaTestUtil(BOB);

    // 2 ops merged into one.
    queue.add(util.noOpDocOp("blipA"));
    queue.add(util.noOpDocOp("blipA"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

  public void testComposistionAfterTransform() throws TransformException {
    DeltaTestUtil util = new DeltaTestUtil(BOB);

    // 2 ops merged into one.
    queue.add(util.noOpDocOp("blipA"));
    queue.add(util.noOpDocOp("blipA"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    // 2 ops merged into one.
    queue.add(util.noOpDocOp("blipA"));
    queue.add(util.noOpDocOp("blipA"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Adding one more operation after that should not merge into previously
    // transformed client op
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Adding one more operation after that should not merge into previously
    // transformed client op
    queue.add(util.noOpDocOp("blipA"));

    // This operation should merge into the previous op as the previous op is not
    // yet transformed
    queue.add(util.noOpDocOp("blipA"));
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    // transformed client op
    queue.add(util.noOpDocOp("blipA"));

    // This operation should merge into the previous op as the previous op is not
    // yet transformed
    queue.add(util.noOpDocOp("blipA"));

    // Should get 1 op, the result of merging and composing the two deltas.
    assertQueueSizeBetween(1, 3);
    assertEquals(list(util.noOpDocOp("blipA")), copyList(queue.take()));
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    // yet transformed
    queue.add(util.noOpDocOp("blipA"));

    // Should get 1 op, the result of merging and composing the two deltas.
    assertQueueSizeBetween(1, 3);
    assertEquals(list(util.noOpDocOp("blipA")), copyList(queue.take()));

    assertQueueIsEmpty();
  }

  public void testCompositionBeforeTransform() throws TransformException {
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

  public void testCompositionBeforeTransform() throws TransformException {
    DeltaTestUtil util = new DeltaTestUtil(BOB);

    // 2 ops merged into one.
    queue.add(util.noOpDocOp("blipA"));
    queue.add(util.noOpDocOp("blipA"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

  public void testCompositionBeforeTransform() throws TransformException {
    DeltaTestUtil util = new DeltaTestUtil(BOB);

    // 2 ops merged into one.
    queue.add(util.noOpDocOp("blipA"));
    queue.add(util.noOpDocOp("blipA"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.