Package org.apache.cxf.testutil.common
Class AbstractTestServerBase
- java.lang.Object
-
- org.apache.cxf.testutil.common.AbstractTestServerBase
-
- Direct Known Subclasses:
AbstractBusTestServerBase,AbstractServerTestServerBase
public abstract class AbstractTestServerBase extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractTestServerBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static StringallocatePort(Class<?> cls)protected static StringallocatePort(Class<?> cls, int i)protected static intallocatePortAsInt(Class<?> cls)protected LoggergetLog()protected voidready()protected abstract voidrun()method implemented by test servers.voidsetUp()voidstart()protected voidstartFailed()voidstartInProcess()booleanstopInProcess()voidtearDown()protected booleanverify(Logger log)Used to facilitate assertions on server-side behaviour.
-
-
-
Method Detail
-
run
protected abstract void run() throws Exceptionmethod implemented by test servers. Initialise servants and publish endpoints etc.- Throws:
Exception
-
getLog
protected Logger getLog()
-
ready
protected void ready()
-
startFailed
protected void startFailed()
-
verify
protected boolean verify(Logger log)
Used to facilitate assertions on server-side behaviour.- Parameters:
log- logger to use for diagnostics if assertions fail- Returns:
- true if assertions hold
-
allocatePortAsInt
protected static int allocatePortAsInt(Class<?> cls)
-
-