Examples of ConversationThread


Examples of org.waveprotocol.wave.model.conversation.ConversationThread

    thread.appendBlip();
    thread.appendBlip();
  }

  private static void biggerSampleReply(ConversationBlip blip) {
    ConversationThread thread = blip.addReplyThread();
    sampleReply(thread.appendBlip());
    sampleReply(thread.appendBlip());
    thread.appendBlip();
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.ConversationThread

    sampleReply(thread.appendBlip());
    thread.appendBlip();
  }

  private static void biggestSampleReply(ConversationBlip blip) {
    ConversationThread thread = blip.addReplyThread();
    biggerSampleReply(thread.appendBlip());
    biggerSampleReply(thread.appendBlip());
    thread.appendBlip();
    thread.appendBlip();
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.ConversationThread

    Conversation c = wave.createRoot();
    ConversationBlip b1 = c.getRootThread().appendBlip();
    ConversationBlip b2 = c.getRootThread().appendBlip();
    write(b1, "First blip");
    write(b2, "Second blip");
    ConversationThread b1t1 = b1.addReplyThread(5);
    write(b1t1.appendBlip(), "First reply");
    ConversationThread b1t2 = b1.addReplyThread();
    write(b1t2.appendBlip(), "Second reply");

    return wave;
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.ConversationThread

  public void testInitialRendering() {
    // Just check that nothing crashes during setUp.
  }

  public void testLiveRenderingCommutesOnBlipAppend() {
    ConversationThread root = wave.getRoot().getRootThread();
    root.appendBlip();
    assertEquals(render().toString(), rendering.toString());
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.ConversationThread

    root.appendBlip();
    assertEquals(render().toString(), rendering.toString());
  }

  public void testLiveRenderingCommutesOnBlipInsert() {
    ConversationThread root = wave.getRoot().getRootThread();
    root.insertBlip(Iterables.get(root.getBlips(), 1));

    assertEquals(render().toString(), rendering.toString());
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.ConversationThread

    assertEquals(render().toString(), rendering.toString());
  }

  public void testLiveRenderingCommutesOnBlipDelete() {
    ConversationThread root = wave.getRoot().getRootThread();
    root.getFirstBlip().delete();

    assertEquals(render().toString(), rendering.toString());
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.ConversationThread

      this.privates = privates;
    }

    void populate(ConversationBlip blip, FakeBlipView blipUi) {
      for (ThreadBuilder threadBuilder : unanchored) {
        ConversationThread thread = blip.addReplyThread();
        threadBuilder.populate(thread, blipUi.insertDefaultAnchorBefore(null, thread).getThread());
      }
      for (ThreadBuilder threadBuilder : anchored) {
        ConversationThread thread = blip.addReplyThread(blip.getContent().size() - 1);
        FakeAnchor anchor = blipUi.insertDefaultAnchorBefore(null, thread);
        FakeInlineThreadView threadUi = anchor.getThread();
        threadBuilder.populate(thread, threadUi);
        anchor.detach(threadUi);
        blipUi.getMeta().createInlineAnchorBefore(null, thread).attach(threadUi);
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.ConversationThread

  }

  private static ConversationView createSample() {
    ConversationView v = FakeConversationView.builder().build();
    Conversation c = v.createRoot();
    ConversationThread root = c.getRootThread();
    sampleReply(root.appendBlip());
    root.appendBlip();
    root.appendBlip();
    biggerSampleReply(root.appendBlip());
    root.appendBlip();
    root.appendBlip();
    biggestSampleReply(root.appendBlip());
    root.appendBlip();
    biggerSampleReply(root.appendBlip());
    sampleReply(root.appendBlip());
    return v;
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.ConversationThread

    d.appendXml(XmlStringBuilder.createFromXmlString("<body><line></line>Hello World</body>"));
  }

  private static void sampleReply(ConversationBlip blip) {
    sampleContent(blip.getContent());
    ConversationThread thread = blip.addReplyThread(5);
    thread.appendBlip();
    thread.appendBlip();
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.ConversationThread

    thread.appendBlip();
    thread.appendBlip();
  }

  private static void biggerSampleReply(ConversationBlip blip) {
    ConversationThread thread = blip.addReplyThread();
    sampleReply(thread.appendBlip());
    sampleReply(thread.appendBlip());
    thread.appendBlip();
  }
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.