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

Allow specifying the endpoint path via @CXFEndpoint("/myPath"), thus allowing to mock service implementations in tests #1364

Merged
merged 1 commit into from
May 2, 2024

Conversation

ppalaga
Copy link
Contributor

@ppalaga ppalaga commented May 1, 2024

Fix #1365

Comment on lines 48 to 53
@CXFEndpoint("/helloMock")
HelloService helloMockService() {
final HelloService result = Mockito.mock(HelloService.class);
Mockito.when(result.hello("Mock")).thenReturn("helloMock!");
return result;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@famod this is the idea I had to support mocking endpoints in tests #1217 Does it somehow match your needs?

@ppalaga
Copy link
Contributor Author

ppalaga commented May 1, 2024

Added some docs and a support for having CXFEndpoint("/my-path") on implementation classes.

…allowing to mock service implementations in tests
@ppalaga ppalaga force-pushed the 240501-CXFEndpoint branch from bf29385 to dfb660e Compare May 2, 2024 11:02
@ppalaga
Copy link
Contributor Author

ppalaga commented May 2, 2024

dfb660e: improved the docs

@ppalaga ppalaga merged commit 366a4c1 into quarkiverse:main May 2, 2024
24 checks passed
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.

Document the new @CXFEndpoint annotation
1 participant