com.xebialabs.itest
Interface ItestHost


public interface ItestHost

Represents a host that is used for an integration test.


Method Summary
 java.lang.String getHostName()
          Returns the name of the host to connect to.
 int getPort(int port)
          Translates a target port number to the port number to connect to.
 void setup()
          Ensures the host is available for the integration test.
 void teardown()
          Releases the host resources.
 

Method Detail

setup

void setup()
Ensures the host is available for the integration test. To be called before the integration is started.


teardown

void teardown()
Releases the host resources. To be called after the integration test has finished.


getHostName

java.lang.String getHostName()
Returns the name of the host to connect to. Can only be called after setup() has been invoked.

Returns:
the host name.

getPort

int getPort(int port)
Translates a target port number to the port number to connect to. Can only be called after setup() has been invoked.

Parameters:
port - the target port number
Returns:
the translated port number.