Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cse332-22su
p1-public
Commits
6387b15c
Commit
6387b15c
authored
Jan 20, 2022
by
WinJ
Browse files
assertThrows simplified and lambda removed
parent
f0c5d221
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/ckpt1/CircularArrayFIFOQueueTests.java
View file @
6387b15c
...
...
@@ -38,8 +38,12 @@ public class CircularArrayFIFOQueueTests {
assertEquals
(
5
,
STUDENT_QUEUE
.
capacity
());
// Checks to make sure the queue throws NoSuchElementException when calling peek or next
assertThrows
(
NoSuchElementException
.
class
,
STUDENT_QUEUE:
:
peek
);
assertThrows
(
NoSuchElementException
.
class
,
STUDENT_QUEUE:
:
next
);
assertThrows
(
NoSuchElementException
.
class
,
()
->
{
STUDENT_QUEUE
.
peek
();
});
assertThrows
(
NoSuchElementException
.
class
,
()
->
{
STUDENT_QUEUE
.
next
();
});
}
@Test
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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