Skip to content

Commit

Permalink
#23 - the newer mockito version fails on unused stubbings. That made …
Browse files Browse the repository at this point in the history
…it obvious that we had an off-by-one-error here
  • Loading branch information
BGehrels committed May 24, 2017
1 parent c4da519 commit af6694f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void testSnapshotSavedInBatches() {
// when snapshot returns 5 item stream
when(snapshotEventProvider.getSnapshot(PUBLISHER_EVENT_TYPE, null)).thenReturn(eventPayloads.subList(0, 3));
when(snapshotEventProvider.getSnapshot(PUBLISHER_EVENT_TYPE, 2)).thenReturn(eventPayloads.subList(3, 5));
//when(snapshotEventProvider.getSnapshot(PUBLISHER_EVENT_TYPE, 5)).thenReturn(Collections.emptyList());
when(snapshotEventProvider.getSnapshot(PUBLISHER_EVENT_TYPE, 4)).thenReturn(Collections.emptyList());

// create a snapshot
eventTransmissionService.createSnapshotEvents(PUBLISHER_EVENT_TYPE);
Expand Down

0 comments on commit af6694f

Please sign in to comment.