org.apache.james.test.util
Class Util

java.lang.Object
  extended by org.apache.james.test.util.Util

public class Util
extends java.lang.Object

some utilities for James unit testing


Constructor Summary
Util()
           
 
Method Summary
static org.apache.avalon.framework.configuration.DefaultConfiguration createRemoteManagerHandlerChainConfiguration()
           
static org.apache.avalon.framework.configuration.DefaultConfiguration createSMTPHandlerChainConfiguration()
           
protected static int getNextNonPrivilegedPort()
          assigns ports sequentially from the range of test ports
static int getNonPrivilegedPort()
          assigns a port from the range of test ports
protected static int getRandomNonPrivilegedPortInt()
          assigns a random port from the range of test ports
static org.apache.avalon.framework.configuration.Configuration getValuedConfiguration(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getNonPrivilegedPort

public static int getNonPrivilegedPort()
assigns a port from the range of test ports

Returns:
port number

getRandomNonPrivilegedPortInt

protected static int getRandomNonPrivilegedPortInt()
assigns a random port from the range of test ports

Returns:
port number

getNextNonPrivilegedPort

protected static int getNextNonPrivilegedPort()
assigns ports sequentially from the range of test ports

Returns:
port number

getValuedConfiguration

public static org.apache.avalon.framework.configuration.Configuration getValuedConfiguration(java.lang.String name,
                                                                                             java.lang.String value)

createRemoteManagerHandlerChainConfiguration

public static org.apache.avalon.framework.configuration.DefaultConfiguration createRemoteManagerHandlerChainConfiguration()

createSMTPHandlerChainConfiguration

public static org.apache.avalon.framework.configuration.DefaultConfiguration createSMTPHandlerChainConfiguration()


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.