You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For my tests I use com.epages:restdocs-api-spec-restassured and my application is developed with spring-boot-starter-webflux unfortunately restdocs-api-spec contains spring-boot-starter-web and it makes the tests fails with a connection refused so my test is not working.
I suffered the same problem with this; wrong webflux dependency on the spring-boot-starter-web.
After further analysis, spring-boot-starter-web has implicit dependency on the tomcat server and does not work with built-in webflux's netty server.
I solved it by excluding webflux dependency from restdocs-api-spec library but author's solution seems to be more appropriate.
For my tests I use
com.epages:restdocs-api-spec-restassured
and my application is developed withspring-boot-starter-webflux
unfortunatelyrestdocs-api-spec
containsspring-boot-starter-web
and it makes the tests fails with a connection refused so my test is not working.For my use case I use the maven plugin
And the latest version (0.19.4).
So to make it work I exclude
spring-boot-starter-web
from restdocs-api-spec with the following code :The code doesn't need to include the spring-boot-starter-web it can just use spring framework dependencies spring-web and spring-context.
The text was updated successfully, but these errors were encountered: