Package org.apache.cxf.testutil.common
Class TestUtil
- java.lang.Object
-
- org.apache.cxf.testutil.common.TestUtil
-
public final class TestUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandeleteDir(File dir)static PropertiesgetAllPorts()static StringgetClassPath(ClassLoader loader)static MethodgetMethod(Class<?> clazz, String methodName)static StringgetNewPortNumber(Class<?> cls)static StringgetNewPortNumber(Class<?> cls, int count)static StringgetNewPortNumber(String name)static StringgetNewPortNumber(String fullName, String simpleName)static StringgetPortNumber(Class<?> cls)static StringgetPortNumber(Class<?> cls, int count)static StringgetPortNumber(String name)static StringgetPortNumber(String fullName, String simpleName)static voidsetAddress(Object o, String address)static voidupdateAddressPort(Object o, int port)static voidupdateAddressPort(Object o, String port)
-
-
-
Method Detail
-
deleteDir
public static boolean deleteDir(File dir)
-
getClassPath
public static String getClassPath(ClassLoader loader) throws URISyntaxException
- Throws:
URISyntaxException
-
getAllPorts
public static Properties getAllPorts()
-
updateAddressPort
public static void updateAddressPort(Object o, String port) throws NumberFormatException, MalformedURLException
-
updateAddressPort
public static void updateAddressPort(Object o, int port) throws MalformedURLException
- Throws:
MalformedURLException
-
-