Package org.waveprotocol.wave.model.conversation.testing

Examples of org.waveprotocol.wave.model.conversation.testing.FakeConversationView


    LiveConversationViewRenderer.create(
        timer, wave, views, populator, replyHandler, readMonitor, profiles, supplement).init();
  }

  private FakeConversationView createWave() {
    FakeConversationView wave = FakeConversationView.builder().build();
    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);
View Full Code Here


  /**
   * Sets up the test supplement with a real wave model behind it.
   */
  private WaveletBasedConversation setUpWithWaveModel() {
    FakeConversationView view = FakeConversationView.builder().with(schemas).build();
    WaveletBasedConversation conversation = view.createRoot();
    ParticipantId viewer = new ParticipantId("nobody@nowhere.com");
    supplement = SupplementedWaveImpl.create(substrate, view, viewer, DefaultFollow.ALWAYS);
    return conversation;
  }
View Full Code Here

   * does not trigger any writes.
   *
   * This is a regression test for bug 2459305.
   */
  public void testCopySnapshotDoesNotCauseWrites() {
    FakeConversationView view = FakeConversationView.builder().with(schemas).build();
    Wavelet udw = view.getWaveView().createUserData();
    PrimitiveSupplement substrate = WaveletBasedSupplement.create(udw);
    ParticipantId viewer = new ParticipantId("nobody@google.com");
    SupplementedWave swave = SupplementedWaveImpl.create(substrate, view, viewer, ALWAYS);

    // Do something that is readable
    view.createRoot().addParticipant(viewer);
    swave.markAsRead();

    // Save version to detect writes
    long udwVersion = udw.getVersion();

View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.conversation.testing.FakeConversationView

Copyright © 2018 www.massapicom. 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.