@Test public void refresh_table_sizeShouldUpdate() throws SQLException { assertEquals(4, container.size()); DataGenerator.addFiveThousandPeople(connectionPool); container.refresh(); assertEquals(5000, container.size()); }
@Test public void itemPropertyIsNotRevertedOnRefresh() { getItem(existingItemId).getItemProperty(NAME).setValue("foo"); container.refresh(); assertThat(getItem(existingItemId).getItemProperty(NAME).toString(), is("foo")); }