-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add TimeUnit null check test case in Timed #5231
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
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.x #5231 +/- ##
============================================
+ Coverage 95.99% 96.06% +0.07%
- Complexity 5750 5753 +3
============================================
Files 628 628
Lines 41074 41074
Branches 5697 5697
============================================
+ Hits 39428 39459 +31
+ Misses 654 649 -5
+ Partials 992 966 -26
Continue to review full report at Codecov.
|
implements QueueDisposable<T> { | ||
|
||
public abstract class BasicIntQueueDisposable<T> extends AtomicInteger | ||
implements QueueDisposable<T> { |
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.
Revert style changes
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.
yeah, I changed :)
|
||
Disposable d; | ||
private Disposable d; |
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.
Revert visibility changes. These are intentional
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.
Some adjustments are still needed, otherwise 👍
@@ -209,6 +209,11 @@ public void blockingLastEmpty() { | |||
Observable.empty().blockingLast(); | |||
} | |||
|
|||
@Test(expected = IllegalArgumentException.class) | |||
public void blockingIterableNegativeBufferSizeFail() { |
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.
This is covered by the ParamValidationCheckerTest class which scans all operators for parameter validation.
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.
Oh.. yeap I got it. thank you 👍
@@ -84,4 +84,10 @@ public void toStringOf() { | |||
|
|||
assertEquals("Timed[time=5, unit=SECONDS, value=1]", t1.toString()); | |||
} | |||
|
|||
@SuppressWarnings({"unchecked", "rawtypes"}) |
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.
There is no need to suppress this.
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.
yeap I got it. thank you 👍 I removed this annotation.
@SuppressWarnings({"unchecked", "rawtypes"}) | ||
@Test(expected = NullPointerException.class) | ||
public void timeUnitNullFail() throws Exception { | ||
Timed<Integer> t1 = new Timed<Integer>(1, 5, null); |
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.
t1
shows up as unused variable, please remove the assignment.
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 agree and removed useless variable.
Uh oh!
There was an error while loading. Please reload this page.