-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Labels
type: regressionA regression from a previous releaseA regression from a previous release
Milestone
Description
In Boot 3.5.8, @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) would start a server and configure a TestRestTemplate from which you could get the URI to that server to e.g. test some non-Spring client code.
In Boot 4.0.0, adding @AutoConfigureTestRestTemplate to the same configures a TestRestTemplate, but getRootUri() always returns "". This isn't mentioned in the migration guide.
Should that be considered a bug, and/or is there another intended way to get the URI (in particular the port) for the test server?
Metadata
Metadata
Assignees
Labels
type: regressionA regression from a previous releaseA regression from a previous release