also improve jmx port allocation in tests 1171/head
authorAlex Heneveld <alex.heneveld@cloudsoftcorp.com>
Fri, 22 Jan 2016 11:46:50 +0000 (11:46 +0000)
committerAlex Heneveld <alex.heneveld@cloudsoftcorp.com>
Fri, 22 Jan 2016 11:46:50 +0000 (11:46 +0000)
commite77f62a09cc0b256387e564862682d11c809861f
treed527cd2ffc4f9eaf8c8a885c7ce6319917bc6c17
parentcfd54d5bc5201f0d8d8cde29ac6893f5a6090947
also improve jmx port allocation in tests

to fix another observed test failure,
at https://builds.apache.org/job/incubator-brooklyn-pull-requests/org.apache.brooklyn$brooklyn-software-base/2439/testReport/junit/org.apache.brooklyn.feed.jmx/JmxFeedTest/setUp/

Port already in use: 40125; nested exception is:
 java.net.BindException: Address already in use
brooklyn-server/software/base/src/test/java/org/apache/brooklyn/entity/software/base/test/jmx/JmxService.java
brooklyn-server/software/base/src/test/java/org/apache/brooklyn/feed/jmx/JmxFeedTest.java
brooklyn-server/test-support/src/main/java/org/apache/brooklyn/test/NetworkingTestUtils.java
brooklyn-server/utils/common/src/main/java/org/apache/brooklyn/util/net/Networking.java