Skip to content

Address some errorprone warnings in the tests#10509

Merged
joschi merged 17 commits intodropwizard:release/4.0.xfrom
rhowe:test-tidy
Oct 5, 2025
Merged

Address some errorprone warnings in the tests#10509
joschi merged 17 commits intodropwizard:release/4.0.xfrom
rhowe:test-tidy

Conversation

@rhowe
Copy link
Copy Markdown
Contributor

@rhowe rhowe commented Sep 14, 2025

Address various errorprone warnings in tests

  • Assert the state of Futures in TcpHealthCheckTest
  • Avoid deprecated assert-j method in JsonHealthResponseProviderTest
  • Avoid calling mocked methods in ScheduledHealthCheckTest
  • Use logback ListAppender instead of mocking in HealthCheckConfigValidatorTest
  • Add @Override annotation in HealthCheckConfigValidatorTest
  • Suppress warning about confusing nullness annotations in ConfigurationValidationExceptionTest
  • Make fields final in SlowRequestFilterTest
  • Remove unused mock from DropwizardSlf4jRequestLogWriterTest
  • Avoid unnecessary autoboxing in ServerLifecycleListenerTest
  • Simplify LoggingJdbiExceptionMapperTest
  • Replace deprecated Session#createNativeQuery in TransactionHandlingTest
  • Simplify dropwizard-db TimeBoundHealthCheckTest
  • Suppress some errorprone warnings in dropwizard-core tests
  • Remove usage of deprecated IntParam from dropwizard-testing tests
  • Replace deprecated UsernamePasswordCredentials#getPassword with getUserPassword
  • Throwable#getCause is synchronized and should remain so when overridden
  • Update to use non-deprecated mockito strictness configuration method

@rhowe rhowe requested a review from a team as a code owner September 14, 2025 10:00
@github-actions github-actions bot added this to the 4.0.17 milestone Sep 14, 2025
@rhowe rhowe changed the title Test tidy Address some errorprone warnings in the tests Sep 14, 2025
Copy link
Copy Markdown
Member

@joschi joschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhowe LGTM, thanks!

@joschi joschi enabled auto-merge (squash) October 5, 2025 21:15
@joschi joschi merged commit 6aa2e17 into dropwizard:release/4.0.x Oct 5, 2025
12 of 13 checks passed
joschi pushed a commit that referenced this pull request Oct 5, 2025
* Update to use non-deprecated mockito strictness configuration method

* Throwable#getCause is synchronized and should remain so when overridden

* Replace deprecated UsernamePasswordCredentials#getPassword with getUserPassword

* Remove usage of deprecated IntParam from dropwizard-testing tests

* Suppress some errorprone warnings in dropwizard-core tests

* Simplify dropwizard-db TimeBoundHealthCheckTest

* Replace deprecated Session#createNativeQuery in TransactionHandlingTest

* Simplify LoggingJdbiExceptionMapperTest

* Avoid unnecessary autoboxing in ServerLifecycleListenerTest

* Remove unused mock from DropwizardSlf4jRequestLogWriterTest

* Make fields final in SlowRequestFilterTest

* Suppress warning about confusing nullness annotations in ConfigurationValidationExceptionTest

* Add @OverRide annotation in HealthCheckConfigValidatorTest

* Use logback ListAppender instead of mocking in HealthCheckConfigValidatorTest

* Avoid calling mocked methods in ScheduledHealthCheckTest

* Avoid deprecated assert-j method in JsonHealthResponseProviderTest

* Assert the state of Futures in TcpHealthCheckTest

Refs #10509
joschi pushed a commit that referenced this pull request Oct 5, 2025
* Update to use non-deprecated mockito strictness configuration method

* Throwable#getCause is synchronized and should remain so when overridden

* Replace deprecated UsernamePasswordCredentials#getPassword with getUserPassword

* Remove usage of deprecated IntParam from dropwizard-testing tests

* Suppress some errorprone warnings in dropwizard-core tests

* Simplify dropwizard-db TimeBoundHealthCheckTest

* Replace deprecated Session#createNativeQuery in TransactionHandlingTest

* Simplify LoggingJdbiExceptionMapperTest

* Avoid unnecessary autoboxing in ServerLifecycleListenerTest

* Remove unused mock from DropwizardSlf4jRequestLogWriterTest

* Make fields final in SlowRequestFilterTest

* Suppress warning about confusing nullness annotations in ConfigurationValidationExceptionTest

* Add @OverRide annotation in HealthCheckConfigValidatorTest

* Use logback ListAppender instead of mocking in HealthCheckConfigValidatorTest

* Avoid calling mocked methods in ScheduledHealthCheckTest

* Avoid deprecated assert-j method in JsonHealthResponseProviderTest

* Assert the state of Futures in TcpHealthCheckTest

Refs #10509
joschi added a commit that referenced this pull request Oct 5, 2025
* Update to use non-deprecated mockito strictness configuration method

* Throwable#getCause is synchronized and should remain so when overridden

* Replace deprecated UsernamePasswordCredentials#getPassword with getUserPassword

* Remove usage of deprecated IntParam from dropwizard-testing tests

* Suppress some errorprone warnings in dropwizard-core tests

* Simplify dropwizard-db TimeBoundHealthCheckTest

* Replace deprecated Session#createNativeQuery in TransactionHandlingTest

* Simplify LoggingJdbiExceptionMapperTest

* Avoid unnecessary autoboxing in ServerLifecycleListenerTest

* Remove unused mock from DropwizardSlf4jRequestLogWriterTest

* Make fields final in SlowRequestFilterTest

* Suppress warning about confusing nullness annotations in ConfigurationValidationExceptionTest

* Add @OverRide annotation in HealthCheckConfigValidatorTest

* Use logback ListAppender instead of mocking in HealthCheckConfigValidatorTest

* Avoid calling mocked methods in ScheduledHealthCheckTest

* Avoid deprecated assert-j method in JsonHealthResponseProviderTest

* Assert the state of Futures in TcpHealthCheckTest

Refs #10509

Co-authored-by: Russell Howe <[email protected]>
@rhowe rhowe deleted the test-tidy branch October 10, 2025 07:20
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