/** * Initialize JerseyTest instance and specify the test container factory to be used by this test. * <p> * This constructor can be used from an extending subclass. * <p> * When this constructor is used, the extending concrete subclass must implement one of the * {@link #configure()} or {@link #configureDeployment()} methods to provide the tested application * configuration and deployment context. * </p> * * @param testContainerFactory the test container factory to use for testing. */ public JerseyTest(final TestContainerFactory testContainerFactory) { // Note: this must be the first call in the constructor to allow setting config // properties (especially around logging) in the configure() or configureDeployment() // method overridden in subclass, otherwise the properties set in the subclass would // not be set soon enough this.context = configureDeployment(); this.testContainerFactory = testContainerFactory; }
/** * Initialize JerseyTest instance. * <p> * This constructor can be used from an extending subclass. * <p> * When this constructor is used, the extending concrete subclass must implement one of the * {@link #configure()} or {@link #configureDeployment()} methods to provide the tested application * configuration and deployment context. * </p> */ public JerseyTest() { // Note: this must be the first call in the constructor to allow setting config // properties (especially around logging) in the configure() or configureDeployment() // method overridden in subclass, otherwise the properties set in the subclass would // not be set soon enough this.context = configureDeployment(); this.testContainerFactory = getTestContainerFactory(); }
/** * Initialize JerseyTest instance and specify the test container factory to be used by this test. * <p> * This constructor can be used from an extending subclass. * <p> * When this constructor is used, the extending concrete subclass must implement one of the * {@link #configure()} or {@link #configureDeployment()} methods to provide the tested application * configuration and deployment context. * </p> * * @param testContainerFactory the test container factory to use for testing. */ public JerseyTest(final TestContainerFactory testContainerFactory) { // Note: this must be the first call in the constructor to allow setting config // properties (especially around logging) in the configure() or configureDeployment() // method overridden in subclass, otherwise the properties set in the subclass would // not be set soon enough this.context = configureDeployment(); this.testContainerFactory = testContainerFactory; }
/** * Initialize JerseyTest instance. * <p> * This constructor can be used from an extending subclass. * <p> * When this constructor is used, the extending concrete subclass must implement one of the * {@link #configure()} or {@link #configureDeployment()} methods to provide the tested application * configuration and deployment context. * </p> */ public JerseyTest() { // Note: this must be the first call in the constructor to allow setting config // properties (especially around logging) in the configure() or configureDeployment() // method overridden in subclass, otherwise the properties set in the subclass would // not be set soon enough this.context = configureDeployment(); this.testContainerFactory = getTestContainerFactory(); }