-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[COLLECTIONS-758] Add test cases for AbstractQueueDecorator #113
base: master
Are you sure you want to change the base?
Conversation
What is the new class prefixed with a "T"? |
It's an instance of AbstractQueueDecorator. I had changed it. |
|
||
@Override | ||
public Collection<E> makeConfirmedCollection() { | ||
final ArrayList<E> list = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The local var is useless, you can remove it.
try { | ||
getCollection().remove(); | ||
fail("Queue.remove should throw NoSuchElementException"); | ||
} catch (final NoSuchElementException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use JUnit 5's assertThrows()
in new tests.
|
||
try { | ||
getCollection().element(); | ||
fail("Queue.remove should throw NoSuchElementException"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use JUnit 5's assertThrows() in new tests.
No description provided.