Package org.apache.cxf.testutil.common
Class AbstractTestServerBase
java.lang.Object
org.apache.cxf.testutil.common.AbstractTestServerBase
- Direct Known Subclasses:
AbstractBusTestServerBase,AbstractServerTestServerBase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 voidvoidbooleanvoidtearDown()protected booleanUsed to facilitate assertions on server-side behaviour.
-
Constructor Details
-
AbstractTestServerBase
public AbstractTestServerBase()
-
-
Method Details
-
run
method implemented by test servers. Initialise servants and publish endpoints etc.- Throws:
Exception
-
getLog
-
startInProcess
- Throws:
Exception
-
stopInProcess
- Throws:
Exception
-
start
- Throws:
Exception
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
ready
protected void ready() -
startFailed
protected void startFailed() -
verify
Used to facilitate assertions on server-side behaviour.- Parameters:
log- logger to use for diagnostics if assertions fail- Returns:
- true if assertions hold
-
allocatePortAsInt
-
allocatePort
-
allocatePort
-