Package org.glassfish.jersey.test
Class TestProperties
- java.lang.Object
-
- org.glassfish.jersey.test.TestProperties
-
public final class TestProperties extends Object
Jersey test framework configuration properties.- Author:
- Marek Potociar
-
-
Field Summary
Fields Modifier and Type Field Description static String
ASYNC_TIMEOUT_MULTIPLIER
Specifies the multiplier which will be applied to timeouts for asynchronous tests.static String
CONTAINER_FACTORY
Specifies thetest 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 defaulttest 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 totrue
the property instructs the test traffic logger to dump message entities as part of the test traffic logging.static String
LOG_TRAFFIC
If set totrue
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 atlog level
value (or higher) defined by the value of this property.
-
-
-
Field Detail
-
LOG_TRAFFIC
public static final String LOG_TRAFFIC
If set totrue
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 seeDUMP_ENTITY
documentation for instructions how to enable entity content dumping. The default value isfalse
. The name of the configuration property is "jersey.config.test.logging.enable".- See Also:
- Constant Field Values
-
DUMP_ENTITY
public static final String DUMP_ENTITY
If set totrue
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 unlesstraffic logging
is enabled too. The default value isfalse
. The name of the configuration property is "jersey.config.test.logging.dumpEntity".- See Also:
- Constant Field Values
-
CONTAINER_FACTORY
public static final String CONTAINER_FACTORY
Specifies thetest container factory
implementation class to be used to create a test container instance for the test. The value of the property must be aString
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".- See Also:
CONTAINER_PORT
, Constant Field Values
-
DEFAULT_CONTAINER_FACTORY
public static final String DEFAULT_CONTAINER_FACTORY
Specifies the defaulttest container factory
implementation class to be used to create a test container instance for the test.- See Also:
CONTAINER_FACTORY
, Constant Field Values
-
CONTAINER_PORT
public static final String CONTAINER_PORT
Specifies the network connection port to be used by an active test container for test application deployment. The value of the property must be a valid positive integer, otherwise it will be ignored. If the value of the property is0
then first available port is used. The default value is 9998. The name of the configuration property is "jersey.config.test.container.port".- See Also:
CONTAINER_FACTORY
, Constant Field Values
-
DEFAULT_CONTAINER_PORT
public static final int DEFAULT_CONTAINER_PORT
Specifies the default network connection port to be used by an active test container for test application deployment.- See Also:
CONTAINER_PORT
, Constant Field Values
-
RECORD_LOG_LEVEL
public static final String RECORD_LOG_LEVEL
If set to a numeric value then this property enables to store log records atlog level
value (or higher) defined by the value of this property. Log records can be retrieved in tests usingJerseyTest.getLoggedRecords()
. This property is not supported for parallel tests. The name of the configuration property is "jersey.config.test.logging.record.level".- See Also:
- Constant Field Values
-
ASYNC_TIMEOUT_MULTIPLIER
public static final String ASYNC_TIMEOUT_MULTIPLIER
Specifies the multiplier which will be applied to timeouts for asynchronous tests. This property is useful to be defined if there are problems with environment in which tests run and tests fail for timeout due to slow processing.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".- See Also:
- Constant Field Values
-
-