Package com.google.wave.api.BlipIterator

Examples of com.google.wave.api.BlipIterator.SingleshotIterator


    when(wavelet.getWaveletId()).thenReturn(WaveletId.of("example.com", "wavelet1"));
  }

  public void testSingleshotIterator() throws Exception {
    Blip blip = new Blip("blip1", "\n1 1 1", null, null, wavelet);
    SingleshotIterator iterator = new BlipIterator.SingleshotIterator(blip, 0, 1);
    assertTrue(iterator.hasNext());
    Range range = iterator.next();
    assertEquals(0, range.getStart());
    assertEquals(1, range.getEnd());
    assertFalse(iterator.hasNext());
  }
View Full Code Here


    when(wavelet.getWaveletId()).thenReturn(WaveletId.deserialise("google.com!wavelet1"));
  }

  public void testSingleshotIterator() throws Exception {
    Blip blip = new Blip("blip1", "\n1 1 1", null, wavelet);
    SingleshotIterator iterator = new BlipIterator.SingleshotIterator(blip, 0, 1);
    assertTrue(iterator.hasNext());
    Range range = iterator.next();
    assertEquals(0, range.getStart());
    assertEquals(1, range.getEnd());
    assertFalse(iterator.hasNext());
  }
View Full Code Here

TOP

Related Classes of com.google.wave.api.BlipIterator.SingleshotIterator

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.