Class TestProperties


  • public final class TestProperties
    extends Object
    Jersey test framework configuration properties.
    Author:
    Marek Potociar
    • Field Detail

      • LOG_TRAFFIC

        public static final String LOG_TRAFFIC
        If set to 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".

        See Also:
        Constant Field Values
      • DUMP_ENTITY

        public static final 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. 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".

        See Also:
        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 is 0 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 at 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".

        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