Skip to content

Javadoc of slice test annotations should describe more accurately which components are considered #41914

@Narkissus

Description

@Narkissus

Spring Boot version: 3.3.2

According to the javadoc on org.springframework.boot.test.autoconfigure.webservices.server.WebServiceServerTest annotation, it should configure the context in a way that webservice relevant beans are present - i.e. beans of type Endpoint and EndpointInterceptor.
During my testing I have noticed that the EndpointInterceptor types are absent from the application context during tests while using @WebServiceServerTest.
The current workaround is to import the configuration class where the EndpointInterceptor beans are defined.

You can find a minimal reproducible example code at https://github.com/Narkissus/WebServiceServerTest-issue-example

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions