예제 #1
0
 @Test
 public void refresh_table_sizeShouldUpdate() throws SQLException {
   assertEquals(4, container.size());
   DataGenerator.addFiveThousandPeople(connectionPool);
   container.refresh();
   assertEquals(5000, container.size());
 }
예제 #2
0
  @Test
  public void itemPropertyIsNotRevertedOnRefresh() {
    getItem(existingItemId).getItemProperty(NAME).setValue("foo");

    container.refresh();

    assertThat(getItem(existingItemId).getItemProperty(NAME).toString(), is("foo"));
  }