Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to generate random management port #8023

Closed
wants to merge 1 commit into from

Commits on Jan 19, 2017

  1. Add support to generate random management port

    Previous to this commit, in order to provide a random port for
    management key property should be explicitly provided. Now,
    SpringBootTest annotation can do this if
    WebEnvironment.RANDOM_SERVER_AND_MANAGEMENT_PORT is set.
    
    ```
    @RunWith(SpringRunner.class)
    @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_SERVER_AND_MANAGEMENT_PORT)
    public classSpringBootApplicationTests {
    
    }
    ```
    
    See spring-projectsgh-4424
    eddumelendez committed Jan 19, 2017
    Configuration menu
    Copy the full SHA
    a6b9d26 View commit details
    Browse the repository at this point in the history