org.apache.cxf.testutil.common
Class TestUtil

java.lang.Object
  extended by org.apache.cxf.testutil.common.TestUtil

public final class TestUtil
extends Object


Method Summary
static boolean deleteDir(File dir)
           
static Properties getAllPorts()
           
static String getClassPath(ClassLoader loader)
           
static Method getMethod(Class<?> clazz, String methodName)
           
static String getNewPortNumber(Class<?> cls)
           
static String getNewPortNumber(Class<?> cls, int count)
           
static String getNewPortNumber(String name)
           
static String getNewPortNumber(String fullName, String simpleName)
           
static String getPortNumber(Class<?> cls)
           
static String getPortNumber(Class<?> cls, int count)
           
static String getPortNumber(String name)
           
static String getPortNumber(String fullName, String simpleName)
           
static void setAddress(Object o, String address)
           
static void updateAddressPort(Object o, int port)
           
static void updateAddressPort(Object o, String port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteDir

public static boolean deleteDir(File dir)

getClassPath

public static String getClassPath(ClassLoader loader)
                           throws URISyntaxException
Throws:
URISyntaxException

getMethod

public static Method getMethod(Class<?> clazz,
                               String methodName)

getAllPorts

public static Properties getAllPorts()

getPortNumber

public static String getPortNumber(Class<?> cls)

getPortNumber

public static String getPortNumber(Class<?> cls,
                                   int count)

getPortNumber

public static String getPortNumber(String name)

getNewPortNumber

public static String getNewPortNumber(Class<?> cls)

getNewPortNumber

public static String getNewPortNumber(Class<?> cls,
                                      int count)

getNewPortNumber

public static String getNewPortNumber(String name)

getNewPortNumber

public static String getNewPortNumber(String fullName,
                                      String simpleName)

getPortNumber

public static String getPortNumber(String fullName,
                                   String simpleName)

updateAddressPort

public static void updateAddressPort(Object o,
                                     String port)
                              throws NumberFormatException,
                                     MalformedURLException
Throws:
NumberFormatException
MalformedURLException

updateAddressPort

public static void updateAddressPort(Object o,
                                     int port)
                              throws MalformedURLException
Throws:
MalformedURLException

setAddress

public static void setAddress(Object o,
                              String address)


Apache CXF