이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 2. Specifying test ports
By default, Quarkus tests run on port 8081 to avoid conflict with the running application. This allows you to run tests while the application is running in parallel. You can specify a different port for test connections in your application.properties file. You can use separate ports to test unsecured HTTP connections and connections secured with SSL.
Procedure
Set the
quarkus.http.test-portandquarkus.http.test-ssl-portproperty in theapplication.propertiesfile. Replace<port>with the number of the port that you want to use for test connections:quarkus.http.test-port=<port> quarkus.http.test-ssl-port=<port>
quarkus.http.test-port=<port> quarkus.http.test-ssl-port=<port>Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can set the port number to
0to let the your operating system assign a random port from the range of available ports on your system.NoteQuarkus provides REST Assured integration that updates the default port used by REST Assured before the tests are run, so no additional configuration is required.