@Test public void whenShouldCheckGetByIndex() { init(); StoreUser storeUser = new StoreUser(listUser); String result = storeUser.getByIndex(0).getId(); assertThat(result, is("0")); }
@Test public void whenShouldCheckAdd() { init(); StoreUser storeUser = new StoreUser(listUser); storeUser.add(new User("5")); String result = storeUser.getByIndex(5).getId(); assertThat(result, is("5")); }