Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
d356278e
Unverified
Commit
d356278e
authored
Jan 21, 2021
by
Esko Tajakka
Committed by
GitHub
Jan 21, 2021
Browse files
Update PagerSpliteratorTest.java
parent
fc44476d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/PagerSpliteratorTest.java
View file @
d356278e
...
...
@@ -46,6 +46,16 @@ public class PagerSpliteratorTest {
assertFalse
(
success
);
}
@Test
public
void
shouldReturnFalseIfNextPagerItemMissing
()
{
when
(
pager
.
hasNext
()).
thenReturn
(
true
);
when
(
pager
.
next
()).
thenReturn
(
Collections
.
emptyList
());
boolean
success
=
pagerSpliterator
.
tryAdvance
(
System
.
out
::
println
);
assertFalse
(
success
);
}
@Test
public
void
shouldThrowNullPointerExceptionWhenActionIsMissing
()
{
...
...
@@ -75,4 +85,4 @@ public class PagerSpliteratorTest {
assertArrayEquals
(
new
Integer
[]{
1
,
2
,
3
,
4
,
5
},
elements
);
}
}
\ No newline at end of file
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment