Skip to content

Address some errorprone warnings in the tests#10656

Merged
joschi merged 1 commit intorelease/5.0.xfrom
pr-10509-5.0.x
Oct 5, 2025
Merged

Address some errorprone warnings in the tests#10656
joschi merged 1 commit intorelease/5.0.xfrom
pr-10509-5.0.x

Conversation

@joschi
Copy link
Copy Markdown
Member

@joschi joschi commented 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

* 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 joschi requested a review from a team as a code owner October 5, 2025 21:34
@github-actions github-actions bot added this to the 5.0.1 milestone Oct 5, 2025
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Oct 5, 2025

@joschi joschi merged commit f407f57 into release/5.0.x Oct 5, 2025
22 checks passed
@joschi joschi deleted the pr-10509-5.0.x branch October 5, 2025 22:11
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