org.apache.cxf.testutil.common
Class TestUtil
java.lang.Object
org.apache.cxf.testutil.common.TestUtil
public final class TestUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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