NIFI-6509 - Date related issue in unit test VolatileComponentStatusRe…#3621
NIFI-6509 - Date related issue in unit test VolatileComponentStatusRe…#3621tpalfy wants to merge 1 commit intoapache:masterfrom
Conversation
0aef74d to
4870f50
Compare
|
Hi @tpalfy, thanks for sending the PR! Another JIRA NIFI-6508 and its patch were submitted before this PR, so I merged NIFI-6508 to address the timezone issue at the test. Please take a look at this commit 00f0f84 I noticed your PR addresses the issue as well as does some refactoring to improve code readability. I like more self-descriptive variable naming like you did in the PR. Now the PR has conflict, if you can address conflict, I'm happy to keep reviewing so that your change can also be merged. Thanks! |
…positoryTest As NIFI-6508 has already solved the original issue, turned this PR into a refactor within in the affected Test class.
|
Hi @ijokarumawak, |
|
Thanks for the updates @tpalfy ! The change LGTM, +1. Merging to master! |
…positoryTest As NIFI-6508 has already solved the original issue, turned this PR into a refactor within in the affected Test class. This closes apache#3621. Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
…positoryTest As NIFI-6508 has already solved the original issue, turned this PR into a refactor within in the affected Test class. This closes apache#3621. Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
…positoryTest
VolatileComponentStatusRepositoryTest: In 'createBuffers' adding Date objects to repositories starting from 1970.01.01 00:00:00 local time (instead of GMT) - the same way as the 'start' filter parameters are created in the tests.
Minor refactor (some code duplication elimination in creating the repositories and the testing logic in a couple of unit tests.)
VolatileComponentStatusRepository: filterDates method also used 'new Date(0)' when the start parameter was null. Replaced with 'new Date(Integer.MIN_VALUE)'.
Replaced comment with a fitting annotation (@VisibleForTesting).
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically
master)?Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not
squashor use--forcewhen pushing to allow for clean monitoring of changes.For code changes:
mvn -Pcontrib-check clean installat the rootnififolder?LICENSEfile, including the mainLICENSEfile undernifi-assembly?NOTICEfile, including the mainNOTICEfile found undernifi-assembly?.displayNamein addition to .name (programmatic access) for each of the new properties?For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.