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

Test server endpoints #483

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

Test server endpoints #483

wants to merge 33 commits into from

Conversation

ThanGerlek
Copy link
Contributor

@ThanGerlek ThanGerlek commented Nov 19, 2024

Adds a simple framework for testing Server endpoints and implements some basic tests.

Significant changes

  • TestServerFacade, a simple client
  • MockEndpointProvider, for mocking Server endpoint routes (Mockito.mock() doesn't work on its own)
  • Replaced HTTP PATCH calls with POST

Dependencies

Copy link
Contributor

@webecke webecke left a comment

Choose a reason for hiding this comment

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

This is looking awesome! This will be a big help in making sure our code actually works. The way that MockEndpointProvider implements EndpointProvider is great, because that will force us anytime we go add a new endpoint to go add it in the testing set up. To that end, currently the MockEndpointProvider is missing the shutdown, so the tests don't compile. Otherwise, it LGTM!

@ThanGerlek ThanGerlek requested a review from webecke November 20, 2024 22:27
Base automatically changed from reduce-endpoint-dependencies to main November 25, 2024 18:12
Copy link
Contributor

@webecke webecke left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

3 participants