private ExternalTestContainer(final URI baseUri, final DeploymentContext context) { final UriBuilder uriBuilder = UriBuilder.fromUri(baseUri).path(context.getContextPath()); if (context instanceof ServletDeploymentContext) { uriBuilder.path(((ServletDeploymentContext) context).getServletPath()); } this.baseUri = uriBuilder.build(); if (LOGGER.isLoggable(Level.INFO)) { LOGGER.info("Creating ExternalTestContainer configured at the base URI " + this.baseUri); } }
private GrizzlyWebTestContainer(final URI baseUri, final ServletDeploymentContext context) { this.baseUri = UriBuilder.fromUri(baseUri) .path(context.getContextPath()) .path(context.getServletPath()) .build(); LOGGER.info("Creating GrizzlyWebTestContainer configured at the base URI " + TestHelper.zeroPortToAvailablePort(baseUri)); this.deploymentContext = context; instantiateGrizzlyWebServer(); }
String servletPathLocal = deploymentContext.getServletPath(); if (!servletPathLocal.startsWith("/")) { servletPathLocal = "/" + servletPathLocal;
private ExternalTestContainer(final URI baseUri, final DeploymentContext context) { final UriBuilder uriBuilder = UriBuilder.fromUri(baseUri).path(context.getContextPath()); if (context instanceof ServletDeploymentContext) { uriBuilder.path(((ServletDeploymentContext) context).getServletPath()); } this.baseUri = uriBuilder.build(); if (LOGGER.isLoggable(Level.INFO)) { LOGGER.info("Creating ExternalTestContainer configured at the base URI " + this.baseUri); } }
private GrizzlyWebTestContainer(final URI baseUri, final ServletDeploymentContext context) { this.baseUri = UriBuilder.fromUri(baseUri) .path(context.getContextPath()) .path(context.getServletPath()) .build(); LOGGER.info("Creating GrizzlyWebTestContainer configured at the base URI " + TestHelper.zeroPortToAvailablePort(baseUri)); this.deploymentContext = context; instantiateGrizzlyWebServer(); }
String servletPathLocal = deploymentContext.getServletPath(); if (!servletPathLocal.startsWith("/")) { servletPathLocal = "/" + servletPathLocal;