Skip to content

Commit 384a9d5

Browse files
PascalSchumacherjnape
authored andcommitted
Fix unnecessary stubbing errors.
1 parent ca3e6db commit 384a9d5

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/test/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIteratorTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public void doesNotHaveNextIfMoreAsButNoBs() {
4646
@Test
4747
public void doesNotHaveNextIfNoAsButMoreBs() {
4848
when(as.hasNext()).thenReturn(false);
49-
when(bs.hasNext()).thenReturn(true);
5049

5150
assertThat(combinatorialIterator.hasNext(), is(false));
5251
}

src/test/java/com/jnape/palatable/lambda/internal/iteration/ZippingIteratorTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public void hasNextIfMoreAsAndMoreBs() {
3838
@Test
3939
public void doesNotHaveNextIfAsDoesNotHaveNext() {
4040
when(as.hasNext()).thenReturn(false);
41-
when(bs.hasNext()).thenReturn(true);
4241
assertThat(zippingIterator.hasNext(), is(false));
4342
}
4443

@@ -51,9 +50,6 @@ public void doesNotHaveNextIfBsDoesNotHaveNext() {
5150

5251
@Test
5352
public void zipsNextElementFromAsAndBs() {
54-
when(as.hasNext()).thenReturn(true);
55-
when(bs.hasNext()).thenReturn(true);
56-
5753
when(as.next()).thenReturn(1);
5854
when(bs.next()).thenReturn(2);
5955

0 commit comments

Comments
 (0)