Package org.apache.cxf.testutil.common
Class AbstractClientServerTestBase
- java.lang.Object
-
- org.apache.cxf.testutil.common.AbstractClientServerTestBase
-
- Direct Known Subclasses:
AbstractBusClientServerTestBase
public abstract class AbstractClientServerTestBase extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractClientServerTestBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StringallocatePort(Class<?> cls)protected static StringallocatePort(Class<?> cls, int count)protected static StringallocatePort(String s)static booleanlaunchServer(Class<?> clz)Starts the server inProcessstatic booleanlaunchServer(Class<?> clz, boolean inProcess)Starts the server inProcess or out of process depending on the paramstatic booleanlaunchServer(Class<?> clz, Map<String,String> props, String[] args)Starts the server inProcessstatic booleanlaunchServer(Class<?> clz, Map<String,String> props, String[] args, boolean inProcess)Starts the server inProcess or out of process depending on the paramstatic booleanlaunchServer(AbstractTestServerBase base)Starts the server inProcessprotected voidsetAddress(Object o, String address)static voidstopAllServers()protected voidupdateAddressPort(Object o, String port)
-
-
-
Method Detail
-
launchServer
public static boolean launchServer(AbstractTestServerBase base)
Starts the server inProcess
-
launchServer
public static boolean launchServer(Class<?> clz)
Starts the server inProcess
-
launchServer
public static boolean launchServer(Class<?> clz, boolean inProcess)
Starts the server inProcess or out of process depending on the param
-
launchServer
public static boolean launchServer(Class<?> clz, Map<String,String> props, String[] args)
Starts the server inProcess
-
launchServer
public static boolean launchServer(Class<?> clz, Map<String,String> props, String[] args, boolean inProcess)
Starts the server inProcess or out of process depending on the param
-
updateAddressPort
protected void updateAddressPort(Object o, String port) throws NumberFormatException, MalformedURLException
-
-