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
Add findFirstOpenPortFrom to LocalPortChecker as a complement to findFirstOpenPortAbove. I recently (actually yesterday, in #594) had a need to start from a specific port, and this would have been convenient than having to subtract 1 from the argument, e.g.
In the above, 27016 might not immediately ring a bell, but (assuming you've ever touched a Mongo database), you'll probably recognize 27017 immediately as the default Mongo port.
I am actually not sure why we didn't have this method all along...looking at the existing code, it seems more natural to want to find a port starting from a specific port.
The text was updated successfully, but these errors were encountered:
* Add new method LocalPortChecker#findFirstOpenPortFrom
* Add "throws" declaration to javadoc for isPortAvailable and
findFirstOpenPortAbove
* Restructure the test to use nested classes, and add new tests for
the new findFirstOpenPortFrom() method
Closes#595
* Add new method LocalPortChecker#findFirstOpenPortFrom
* Add "throws" declaration to javadoc for isPortAvailable and
findFirstOpenPortAbove
* Restructure the test to use nested classes, and add new tests for
the new findFirstOpenPortFrom() method
Closes#595
* Add new method LocalPortChecker#findFirstOpenPortFrom
* Add "throws" declaration to javadoc for isPortAvailable and
findFirstOpenPortAbove
* Restructure the test to use nested classes, and add new tests for
the new findFirstOpenPortFrom() method
Closes#595
Add
findFirstOpenPortFrom
toLocalPortChecker
as a complement tofindFirstOpenPortAbove
. I recently (actually yesterday, in #594) had a need to start from a specific port, and this would have been convenient than having to subtract 1 from the argument, e.g.In the above, 27016 might not immediately ring a bell, but (assuming you've ever touched a Mongo database), you'll probably recognize 27017 immediately as the default Mongo port.
I am actually not sure why we didn't have this method all along...looking at the existing code, it seems more natural to want to find a port starting from a specific port.
The text was updated successfully, but these errors were encountered: