Updating the test
This commit is contained in:
parent
ce8dd88846
commit
48699f4812
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ public class BlockingGetRecordsCacheTest {
|
|||
@Mock
|
||||
private GetRecordsResult getRecordsResult;
|
||||
|
||||
private List<Record> records = new ArrayList<>();
|
||||
private List<Record> records;
|
||||
private BlockingGetRecordsCache blockingGetRecordsCache;
|
||||
|
||||
@Before
|
||||
|
|
@ -54,6 +54,7 @@ public class BlockingGetRecordsCacheTest {
|
|||
when(getRecordsRetrievalStrategy.getRecords(eq(MAX_RECORDS_PER_COUNT))).thenReturn(getRecordsResult);
|
||||
when(getRecordsResult.getRecords()).thenReturn(records);
|
||||
|
||||
records = new ArrayList<>();
|
||||
blockingGetRecordsCache = new BlockingGetRecordsCache(MAX_RECORDS_PER_COUNT, getRecordsRetrievalStrategy);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue