Skip to content

NIFI-6106 Add tests for commons utilities & fix FormatUtils bug#3354

Closed
freddytuxworth wants to merge 4 commits intoapache:masterfrom
Diffblue-benchmarks:add-utils-tests
Closed

NIFI-6106 Add tests for commons utilities & fix FormatUtils bug#3354
freddytuxworth wants to merge 4 commits intoapache:masterfrom
Diffblue-benchmarks:add-utils-tests

Conversation

@freddytuxworth
Copy link
Copy Markdown

I analyzed this project and noticed some methods lacking tests in these two utilities classes. I've written some tests using Diffblue Cover which should hopefully help you to detect any regressions caused by future code changes.

I also corrected a small bug in FormatUtils which caused the formatNanos method to incorrectly format multiples of 1000000 or 1000000000 to "0 nanos".

Please let me know if there are any other areas of your project which you would like tests written for, I would be more than happy to help.

@mattyb149
Copy link
Copy Markdown
Contributor

+1 LGTM, Travis is happy so I'm happy :) Thanks for the nanos fix and the extra tests! Merging to master

@asfgit asfgit closed this in 08a307c Mar 6, 2019
rwithers pushed a commit to rwithers/nifi that referenced this pull request May 3, 2019
These tests were written using Diffblue Cover.

Fixed bug in FormatUtils.formatNanos

Fix import asterisk warning

Add Apache license header.

Signed-off-by: Matthew Burgess <mattyb149@apache.org>

This closes apache#3354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants