Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockWebServerExtension argument checking, Javadocs, etc. #560

Merged

Conversation

sleberknight
Copy link
Member

  • Add more Javadocs to MockWebServerExtension
  • Make uri() a "real" method (not Lombok generated) and check that the URI has been assigned. Throw IllegalStateException if it has not been assigned yet.
  • Add argument checking to uri(path)
  • Change uri(path) to check that the URI is assigned, and throw IllegalStateException like uri() does when it is not yet assigned.
  • Add a dedicated test. Previously, this extension was tested indirectly via other tests, which did not include argument and state checking, etc.

Related to #547, #555, #556

* Add more Javadocs to MockWebServerExtension
* Make uri() a "real" method (not Lombok generated) and check
  that the URI has been assigned. Throw IllegalStateException
  if it has not been assigned yet.
* Add argument checking to uri(path)
* Change uri(path) to check that the URI is assigned, and throw
  IllegalStateException like uri() does when it is not yet assigned.
* Add a dedicated test. Previously, this extension was tested
  indirectly via other tests, which did not include argument
  and state checking, etc.

Related to #547, #555, #556
@sleberknight sleberknight merged commit 1e52f0d into main Feb 8, 2025
6 checks passed
@sleberknight sleberknight deleted the arg-checking-and-cleanup-of-MockWebServerExtension branch February 8, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A request for change or improvement to an existing feature
Projects
None yet
2 participants