@Test public void testGet() { final Record record = mock(Record.class); final RecordImplFactory factory = mock(RecordImplFactory.class); when(factory.createNestedRecord(MOCK_STRUCTURE, MOCK_RECORD)).thenReturn(record); final RecordListImpl list = new RecordListImpl(MOCK_RECORD, MOCK_STRUCTURE, LIST_SIZE, factory); assertThat(list.get(0)).isSameAs(record); }
@Override public Record get(final int index) { return records.get(index); }
RecordListImpl implements RecordList { @Override public Record get(final int index) { return records.get(index); } }
RecordListImpl implements RecordList { @Override public Record get(final int index) { return records.get(index); } RecordListImpl(final Record parent, final Structure structure, final int listSize);   RecordListImpl(final Record parent, final Structure structure, final int listSize,
            final RecordImplFactory recordFactory); }
RecordListImpl implements RecordList { @Override public Record get(final int index) { return records.get(index); } RecordListImpl(final Record parent, final Structure structure, final int listSize);   RecordListImpl(final Record parent, final Structure structure, final int listSize,
            final RecordImplFactory recordFactory); @Override List<Record> getAll(); @Override Record get(final int index); @Override int getSize(); @Override Structure getStructure(); @Override Iterator<Record> iterator(); }
RecordListImpl implements RecordList { @Override public Record get(final int index) { return records.get(index); } RecordListImpl(final Record parent, final Structure structure, final int listSize);   RecordListImpl(final Record parent, final Structure structure, final int listSize,
            final RecordImplFactory recordFactory); @Override List<Record> getAll(); @Override Record get(final int index); @Override int getSize(); @Override Structure getStructure(); @Override Iterator<Record> iterator();  }