com.atlassian.confluence
Class AcceptanceTestUtils

java.lang.Object
  extended by com.atlassian.confluence.AcceptanceTestUtils

public class AcceptanceTestUtils
extends java.lang.Object


Constructor Summary
AcceptanceTestUtils()
           
 
Method Summary
static void assertPortAvailable(int port)
          Ensures the specified TCP port is available to open a socket.
static com.dumbster.smtp.SimpleSmtpServer startSmtpServer(int port)
          This method is used to start the smtp server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptanceTestUtils

public AcceptanceTestUtils()
Method Detail

startSmtpServer

public static com.dumbster.smtp.SimpleSmtpServer startSmtpServer(int port)
This method is used to start the smtp server. Its incorporates a patch to work around a "racing" condition. See: http://sourceforge.net/tracker/index.php?func=detail&aid=1310992&group_id=78413&atid=553188 And: http://jira.atlassian.com/browse/CONF-11253


assertPortAvailable

public static void assertPortAvailable(int port)
                                throws junit.framework.AssertionFailedError
Ensures the specified TCP port is available to open a socket.

Parameters:
port - the port to check
Throws:
junit.framework.AssertionFailedError - if the port can't be opened successfully


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.