@Override protected DeploymentContext configureDeployment() { return ServletDeploymentContext.builder(new DropwizardTestResourceConfig(configuration)) .initParam(ServletProperties.JAXRS_APPLICATION_CLASS, DropwizardTestResourceConfig.class.getName()) .initParam(DropwizardTestResourceConfig.CONFIGURATION_ID, configuration.getId()) .build(); }
@Override protected final DeploymentContext configureDeployment() { configureProperties(); String joinedPackages = String.join(",", getResourcePackages()) + ",com.cloudera.oryx.lambda.serving"; return ServletDeploymentContext.builder(OryxApplication.class) .initParam("javax.ws.rs.Application", OryxApplication.class.getName()) .contextParam(OryxApplication.class.getName() + ".packages", joinedPackages) .addListener(getInitListenerClass()) .build(); }
@Override protected DeploymentContext configureDeployment() { return ServletDeploymentContext.builder(new DropwizardTestResourceConfig(configuration)) .initParam(ServletProperties.JAXRS_APPLICATION_CLASS, DropwizardTestResourceConfig.class.getName()) .initParam(DropwizardTestResourceConfig.CONFIGURATION_ID, configuration.getId()) .build(); }