Remove hardcoded port numbers from UIMA AS tests

Details

Description

Currently extended tests use hardcoded port numbers in broker URLs. Also, most deployment descriptors use hardcoded URLs with specific port numbers. Modify all deployment descriptors to use placeholder for broker URL. During test bootstrapping, first test if a default port is open and if not increment it and test it again until an open port is found. Once found set the System property to enable UIMA AS to resolve the placeholder.

Activity

Replaced hard coded broker URLs with placeholders in all test deployment descriptors. Modified extended JUnit tests to use generated broker URLs. New code tries to acquire port 61617 as its default broker port. If that port is taken, the port number is incremented and tested again. This continues until an open port is found.

Jerry Cwiklik
added a comment - 23/Feb/11 15:40 Replaced hard coded broker URLs with placeholders in all test deployment descriptors. Modified extended JUnit tests to use generated broker URLs. New code tries to acquire port 61617 as its default broker port. If that port is taken, the port number is incremented and tested again. This continues until an open port is found.