nifi icon indicating copy to clipboard operation
nifi copied to clipboard

NIFI-15346 Created migration property unit tests for those components in nifi-box-bundle, nifi-cdc, nifi-cipher-bundle, nifi-confluent-platform-bundle and nifi-dropbox-bundle which did not have these unit tests.

Open dan-s1 opened this issue 1 month ago • 0 comments

Summary

NIFI-15346 The main purpose of this ticket was to create unit tests for for those components in nifi-box-bundle, nifi-cdc, nifi-cipher-bundle, nifi-confluent-platform-bundle and nifi-dropbox-bundle which did not have these unit tests.
In order to test the migration of FetchDropbox, ListDropbox and PutDropbox I combined the testing into one test file named TestDropboxProcessorMigration since the current tests had mocks made in the setup which resulted in unnecessary mock errors when I tried to add migration units tests since those tests did not access the mocks. In addition to adding the tests I also made the various Intellij suggestions and I replaced the use of using Mockito to mock a Processor with the NoOpProcessor.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • [x] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • [x] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • [x] Pull Request based on current revision of the main branch
  • [x] Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • [x] Build completed using ./mvnw clean install -P contrib-check
    • [x] JDK 21
    • [ ] JDK 25

Licensing

  • [ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • [ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • [ ] Documentation formatting appears as expected in rendered files

dan-s1 avatar Dec 16 '25 16:12 dan-s1