You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like Wiremock, Mockserver and Testcontainer are doing it, it would be awesome, if Greenmail could find a free port on the machine by itself. The benefit is that the developer needn't care if the needed port for Greenmail is free on the machine that running the tests.
Furthermore, the developer should have a possibility to ask Greenmail which port is selected.
If you set the port to 0, GreenMail will actually try to find an available port (see example).
The documentation definitely needs an update describing this feature, and a convenience method for creating a ServerSetup configuration, eg ServerSetup.PROTOCOL_SMTP. dynamicPort() , similar as you suggested with WireMock. Thx alot!
Like Wiremock, Mockserver and Testcontainer are doing it, it would be awesome, if Greenmail could find a free port on the machine by itself. The benefit is that the developer needn't care if the needed port for Greenmail is free on the machine that running the tests.
Furthermore, the developer should have a possibility to ask Greenmail which port is selected.
Current workaround:
The text was updated successfully, but these errors were encountered: