-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changes does not change functionality and will not break any implementation. All changes are internal only. Changes to Collection Class: 1) Updated contains to just use collection.stream.anyMatch 2) Added parameter guards to protect against invalid elements 3) get() will throw an illegal state exception if the collection is empty 4) get() asserts object is not null (Which if the collection contains elements, it never should be). 5) JavaDoc has been updated to document these changes Changes to Tests: 1) Added new tests to assert all errors are thrown correctly 2) Added new test to assert get() never returns null in extreme edge cases 3) Increased repeated test amounts 4) Updated int comparison to use assertEquals not assertTrue x == y
- Loading branch information
1 parent
75d2f12
commit b188011
Showing
2 changed files
with
155 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters