title: How to inject the server port in Grails 4 integration tests?
body: <p>Since Grails 4 it is not possible anymore to get the server port in grails integration tests this way:</p>
  
  <pre><code>@Value('${local.server.port}')
  Integer serverPort
  </code></pre>
  
  <p>What's the correct way to get the server port in tests?</p>