@Test public void whenUpdateView_thenViewShouldReflectChanges() { attribute.updateView(view, checkedItemPositions); assertThat( SparseBooleanArrayUtils.toSet(view.getCheckedItemPositions()), equalTo(checkedItemPositions)); }
@Before public void setUp() { checkedItemPositions = SparseBooleanArrayUtils.toSet(anySparseBooleanArray()); }