Package org.nuxeo.runtime.test.runner
Class ServletContainerFeature
- java.lang.Object
-
- org.nuxeo.runtime.test.runner.ServletContainerFeature
-
- All Implemented Interfaces:
RunnerFeature
public class ServletContainerFeature extends Object implements RunnerFeature
Runs an embedded servlet container.
-
-
Constructor Summary
Constructors Constructor Description ServletContainerFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
findFreePort()
String
getHttpUrl()
int
getPort()
Returns the port allocated for this servlet container.void
initialize(FeaturesRunner runner)
Called when preparing to run the test class.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.test.runner.RunnerFeature
afterMethodRun, afterRun, afterTeardown, afterTeardown, beforeMethodRun, beforeRun, beforeSetup, beforeSetup, configure, start, stop, testCreated
-
-
-
-
Field Detail
-
RETRIES
protected static final int RETRIES
- See Also:
- Constant Field Values
-
port
protected int port
-
-
Method Detail
-
initialize
public void initialize(FeaturesRunner runner) throws Exception
Description copied from interface:RunnerFeature
Called when preparing to run the test class. Framework is not started at this point. Here is time for the feature to configure the runner from annotations on the test class.- Specified by:
initialize
in interfaceRunnerFeature
- Throws:
Exception
-
findFreePort
protected int findFreePort()
-
getPort
public int getPort()
Returns the port allocated for this servlet container.- Since:
- 10.10
-
getHttpUrl
public String getHttpUrl()
- Since:
- 2023.13
-
-