public final class TestProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ASYNC_TIMEOUT_MULTIPLIER
Specifies the multiplier which will be applied to timeouts for asynchronous tests.
|
static String |
CONTAINER_FACTORY
Specifies the
test container factory implementation
class to be used to create a test container instance for the test. |
static String |
CONTAINER_PORT
Specifies the network connection port to be used by an active test container
for test application deployment.
|
static String |
DEFAULT_CONTAINER_FACTORY
Specifies the default
test container factory
implementation class to be used to create a test container instance for the
test. |
static int |
DEFAULT_CONTAINER_PORT
Specifies the default network connection port to be used by an active test
container for test application deployment.
|
static String |
DUMP_ENTITY
If set to
true the property instructs the test traffic logger to
dump message entities as part of the test traffic logging. |
static String |
LOG_TRAFFIC
If set to
true the property enables basic logging of the request and
response flow on both - client and server. |
static String |
RECORD_LOG_LEVEL
If set to a numeric value then this property enables to store log records at
log level
value (or higher) defined by the value of this property. |
public static final String LOG_TRAFFIC
true
the property enables basic logging of the request and
response flow on both - client and server. Note that traffic logging does not
dump message entities by default. Please see DUMP_ENTITY
documentation
for instructions how to enable entity content dumping.
The default value is false
.
The name of the configuration property is "jersey.config.test.logging.enable".public static final String DUMP_ENTITY
true
the property instructs the test traffic logger to
dump message entities as part of the test traffic logging. Message entity
dumping is turned off by default for performance reasons. Note that the
value of the property will be ignored unless traffic
logging
is enabled too.
The default value is false
.
The name of the configuration property is "jersey.config.test.logging.dumpEntity".public static final String CONTAINER_FACTORY
test container factory
implementation
class to be used to create a test container instance for the test. The value
of the property must be a String
identifying a valid, fully qualified
name of a test container factory implementation class, otherwise it will
be ignored.
The default value is "org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory".
The name of the configuration property is "jersey.config.test.container.factory".CONTAINER_PORT
,
Constant Field Valuespublic static final String DEFAULT_CONTAINER_FACTORY
test container factory
implementation class to be used to create a test container instance for the
test.CONTAINER_FACTORY
,
Constant Field Valuespublic static final String CONTAINER_PORT
0
then first available port is used.
The default value is 9998.
The name of the configuration property is "jersey.config.test.container.port".CONTAINER_FACTORY
,
Constant Field Valuespublic static final int DEFAULT_CONTAINER_PORT
CONTAINER_PORT
,
Constant Field Valuespublic static final String RECORD_LOG_LEVEL
log level
value (or higher) defined by the value of this property.
Log records can be retrieved in tests using JerseyTest.getLoggedRecords()
.
This property is not supported for parallel tests.
The name of the configuration property is "jersey.config.test.logging.record.level".public static final String ASYNC_TIMEOUT_MULTIPLIER
For example if the timeout for asynchronous test is 5 seconds and this property is defined to 3 then the timeout final will be 15.
The property must be an integer value greater than 1. The default value is 1. The name of the configuration property is "jersey.config.test.async.timeout.multiplier".Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.