コード例 #1
0
  /**
   * Test that the ListEvent iterator isn't adjusted by calling {@link
   * ListEventAssembler#forwardEvent}.
   */
  public void testEventStateAfterForwardEvent() {
    EventList<String> source = new BasicEventList<String>();
    ListConsistencyListener lcl = ListConsistencyListener.install(source);

    source.add("Hello");
    assertEquals(1, lcl.getChangeCount(0));
  }