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 String
allocatePort(Class<?> cls)
protected static String
allocatePort(Class<?> cls, int i)
protected static int
allocatePortAsInt(Class<?> cls)
protected Logger
getLog()
protected void
ready()
protected abstract void
run()
method implemented by test servers.void
setUp()
void
start()
protected void
startFailed()
void
startInProcess()
boolean
stopInProcess()
void
tearDown()
protected boolean
verify(Logger log)
Used to facilitate assertions on server-side behaviour.
-
-
-
Method Detail
-
run
protected abstract void run() throws Exception
method 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)
-
-