project-ncl/pnc — pull request #54 by gaol (2014-12-09 16:03:02+00:00)
Title: [Issue-17] integration-test collides with other services on port 8080

This is for https://github.com/project-ncl/pnc/issues/17.

JBoss EAP 6 and WildFly has a system property: 'jboss.socket.binding.port-offset', which can be used to set ports offset, Arquillian managed container for EAP 6 or WildFly provides this feature also.

The side effects of this change for integration tests are that all http request test cases should consider the http port, instead of use the default '8080' blindly.

A new util class: 'IntegrationTestEnv' is created to get these environment information, each test case can 'static' import the 'IntegrationTestEnv.getHttpPort()' method.