Morten Knudsen
Morten Knudsen

Reputation: 45

Where to find Spring WebSocket integration test artifact?

I'm trying to setup a test for testing a Spring WebSocket client. I found this question which seemed interesting: How to unit test Spring WebSocketStompClient However, I am unable to find the Spring artifact that contains the TomcatWebSocketTestServer class. The source is in the Spring websocket repository, but I can't find any Maven coordinates for it?

Upvotes: 0

Views: 160

Answers (1)

andye
andye

Reputation: 295

As @Mark pointed out, the codebase containing the source for the TomcatWebSocketTestServer is under the standard maven test source path so is unlikely to be published anywhere. However, the source code can be viewed in github along with the source code for other web socket test servers.

Hopefully this should give you a guide to what you would need to implement yourself for this to work.

EDIT: I know SO guidelines suggest posting code snippets rather than links, however this Spring Framework repo is unlikely to be removed anytime soon and the source is also (obviously) copyright protected and I did not want to post a copy, or snippets of it here.

Upvotes: 1

Related Questions