/** * overwrite the getItemId to correctly return the value from the FastAdapter * * @param position * @return */ @Override public long getItemId(int position) { return mFastAdapter.getItemId(position); }
/** * overwrite the getItemId to correctly return the value from the FastAdapter * * @param position * @return */ @Override public long getItemId(int position) { return mFastAdapter.getItemId(position); }
@Test public void getItemId() throws Exception { List<TestItem> items = TestDataGenerator.genTestItemList(100); itemAdapter.set(items); assertThat(adapter.getItemId(40)).isEqualTo(40); }
@Test public void getItemId() throws Exception { List<TestItem> items = TestDataGenerator.genTestItemList(100); itemAdapter.set(items); assertThat(adapter.getItemId(40)).isEqualTo(40); }