-
Notifications
You must be signed in to change notification settings - Fork 160
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
Added Junit Tests for LocalCache Class #3014
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3014 +/- ##
=============================================
+ Coverage 58.35% 58.46% +0.10%
Complexity 2601 2601
=============================================
Files 1070 1070
Lines 22863 22863
Branches 2023 2023
=============================================
+ Hits 13341 13366 +25
+ Misses 8591 8560 -31
- Partials 931 937 +6 |
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.
hey @Coduz,
I have checked this PR and it looks OK - can you please check it when you have time and merge?
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.
I made some comments on things which I have already commented on #3008.
All other things are good :)
for (int expireAfter : expireAfterList) { | ||
for (Object defaultValue : defaultValueList) { | ||
LocalCache<Object, Object> localCache = new LocalCache<>(sizeMax, expireAfter, defaultValue); | ||
assertNotNull(localCache); |
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.
LocalCache<Object, Object> localCache = new LocalCache<>(sizeMax, expireAfter, defaultValue); | ||
assertNotNull(localCache); | ||
assertEquals("Expected and actual values should be the same.", defaultValue, localCache.get(defaultValueList)); | ||
assertThat("LocalCache object expected.", localCache, IsInstanceOf.instanceOf(LocalCache.class)); |
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.
for (int sizeMax : sizeMaxList) { | ||
for (Object defaultValue : defaultValueList) { | ||
LocalCache<Object, Object> localCache = new LocalCache<>(sizeMax, defaultValue); | ||
assertNotNull("Null not expected.", localCache); |
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.
LocalCache<Object, Object> localCache = new LocalCache<>(sizeMax, defaultValue); | ||
assertNotNull("Null not expected.", localCache); | ||
assertEquals("Expected and actual values should be the same.", defaultValue, localCache.get(defaultValueList)); | ||
assertThat("LocalCache object expected.", localCache, IsInstanceOf.instanceOf(LocalCache.class)); |
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.
da8fd52
to
6971f43
Compare
Hey @Coduz, |
Signed-off-by: Sonja <sonja.matic@comtrade.com>
Added Junit Tests for LocalCache Class
Signed-off-by: Sonja sonja.matic@comtrade.com
Related Issue
/
Description of the solution adopted
/
Screenshots
/
Any side note on the changes made
/