-
Notifications
You must be signed in to change notification settings - Fork 31
Add unit test for CodeMetricTrendChart
#356
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
Add unit test for CodeMetricTrendChart
#356
Conversation
Codecov Report
@@ Coverage Diff @@
## master #356 +/- ##
============================================
+ Coverage 54.07% 56.45% +2.37%
- Complexity 263 273 +10
============================================
Files 42 42
Lines 1093 1093
Branches 92 92
============================================
+ Hits 591 617 +26
+ Misses 465 439 -26
Partials 37 37
Continue to review full report at Codecov.
|
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.
Just some minor coding style issues
import static org.mockito.Mockito.*; | ||
|
||
/** | ||
* Tests CodeMetricTrendChart. |
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.
Not all IDEs support refactoring in comments:
* Tests CodeMetricTrendChart. | |
* Tests the class {@link CodeMetricTrendChart}. |
* Tests CodeMetricTrendChart. | ||
* | ||
* @author Nikolas Paripovic | ||
* |
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.
* |
|
||
private final CodeMetricTrendChart codeMetricTrendChart = new CodeMetricTrendChart(); | ||
|
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.
See other PR
|
||
@Test | ||
void shouldCreate() { | ||
Iterable<BuildResult<ForensicsBuildAction>> buildResults = createBuildResults(false); |
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.
Inline empty list
|
||
@Test | ||
void shouldCreateWithData() { | ||
|
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 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.
CodeMetricTrendChart
Added Test for class CodeMetricTrendChart.java
JENKINS-66867