RANDOM_PORT

Creates a web application context (reactive or servlet based) and sets a server.port=0Environment property (which usually triggers listening on a random port). Often used in conjunction with a @LocalServerPort injected field on the test.