Package com.google.wave.api.data.converter.v22

Examples of com.google.wave.api.data.converter.v22.EventDataConverterV22Test


   * @param waveletName the name of the empty wavelet to open in the context.
   * @param participant the participant that should be on that empty wavelet.
   */
  public OperationServiceHelper(WaveletName waveletName, ParticipantId participant) {
    waveletProvider = mock(WaveletProvider.class);
    EventDataConverter converter = new EventDataConverterV22();

    ObservableWaveletData waveletData = WaveletDataImpl.Factory.create(DOCUMENT_FACTORY).create(
        new EmptyWaveletSnapshot(waveletName.waveId, waveletName.waveletId, participant,
            HASH_FACTORY.createVersionZero(waveletName), 0L));
    waveletData.addParticipant(participant);
View Full Code Here


    NavigableMap<ProtocolVersion, EventDataConverter> converters = Maps.newTreeMap();
    EventDataConverterV21 eventDataConverterV21 = new EventDataConverterV21();
    converters.put(ProtocolVersion.V1, eventDataConverterV21);
    converters.put(ProtocolVersion.V2, eventDataConverterV21);
    converters.put(ProtocolVersion.V2_1, eventDataConverterV21);
    converters.put(ProtocolVersion.V2_2, new EventDataConverterV22());
    return new EventDataConverterManager(converters);
  }
View Full Code Here

    NavigableMap<ProtocolVersion, EventDataConverter> converters = Maps.newTreeMap();
    EventDataConverterV21 eventDataConverterV21 = new EventDataConverterV21();
    converters.put(ProtocolVersion.V1, eventDataConverterV21);
    converters.put(ProtocolVersion.V2, eventDataConverterV21);
    converters.put(ProtocolVersion.V2_1, eventDataConverterV21);
    converters.put(ProtocolVersion.V2_2, new EventDataConverterV22());
    return new EventDataConverterManager(converters);
  }
View Full Code Here

   * @param waveletName the name of the empty wavelet to open in the context.
   * @param participant the participant that should be on that empty wavelet.
   */
  public OperationServiceHelper(WaveletName waveletName, ParticipantId participant) {
    waveletProvider = mock(WaveletProvider.class);
    EventDataConverter converter = new EventDataConverterV22();

    ObservableWaveletData waveletData = WaveletDataImpl.Factory.create(DOCUMENT_FACTORY).create(
        new EmptyWaveletSnapshot(waveletName.waveId, waveletName.waveletId, participant,
            HASH_FACTORY.createVersionZero(waveletName), 0L));
    waveletData.addParticipant(participant);
View Full Code Here

TOP

Related Classes of com.google.wave.api.data.converter.v22.EventDataConverterV22Test

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.