com.sun.jersey.test.framework.WebAppDescriptor Java Examples

The following examples show how to use com.sun.jersey.test.framework.WebAppDescriptor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestRMWebServicesDelegationTokens.java    From hadoop with Apache License 2.0 6 votes vote down vote up
public TestRMWebServicesDelegationTokens(int run) throws Exception {
  super(new WebAppDescriptor.Builder(
    "org.apache.hadoop.yarn.server.resourcemanager.webapp")
    .contextListenerClass(GuiceServletConfig.class)
    .filterClass(com.google.inject.servlet.GuiceFilter.class)
    .contextPath("jersey-guice-filter").servletPath("/").build());
  switch (run) {
  case 0:
  default:
    injector = getKerberosAuthInjector();
    break;
  case 1:
    injector = getSimpleAuthInjector();
    break;
  }
}
 
Example #2
Source File: TestRMWebServicesDelegationTokens.java    From big-c with Apache License 2.0 6 votes vote down vote up
public TestRMWebServicesDelegationTokens(int run) throws Exception {
  super(new WebAppDescriptor.Builder(
    "org.apache.hadoop.yarn.server.resourcemanager.webapp")
    .contextListenerClass(GuiceServletConfig.class)
    .filterClass(com.google.inject.servlet.GuiceFilter.class)
    .contextPath("jersey-guice-filter").servletPath("/").build());
  switch (run) {
  case 0:
  default:
    injector = getKerberosAuthInjector();
    break;
  case 1:
    injector = getSimpleAuthInjector();
    break;
  }
}
 
Example #3
Source File: TestRMWebServicesCapacitySched.java    From hadoop with Apache License 2.0 5 votes vote down vote up
public TestRMWebServicesCapacitySched() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #4
Source File: TestTimelineWebServices.java    From ambari-metrics with Apache License 2.0 5 votes vote down vote up
public TestTimelineWebServices() {
  super(new WebAppDescriptor.Builder(
    "org.apache.ambari.metrics.webapp")
    .contextListenerClass(GuiceServletConfig.class)
    .filterClass(com.google.inject.servlet.GuiceFilter.class)
    .contextPath("jersey-guice-filter")
    .servletPath("/")
    .clientConfig(new DefaultClientConfig(YarnJacksonJaxbJsonProvider.class))
    .build());
}
 
Example #5
Source File: AggregatorWebServiceTest.java    From ambari-metrics with Apache License 2.0 5 votes vote down vote up
public AggregatorWebServiceTest() {
    super(new WebAppDescriptor.Builder(
            "org.apache.hadoop.metrics2.host.aggregator")
            .contextPath("jersey-guice-filter")
            .servletPath("/")
            .clientConfig(new DefaultClientConfig(JacksonJaxbJsonProvider.class))
            .build());
}
 
Example #6
Source File: TestHsWebServicesJobs.java    From hadoop with Apache License 2.0 5 votes vote down vote up
public TestHsWebServicesJobs() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.hs.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #7
Source File: TestRMWebServicesApps.java    From hadoop with Apache License 2.0 5 votes vote down vote up
public TestRMWebServicesApps() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #8
Source File: TestHsWebServicesJobsQuery.java    From hadoop with Apache License 2.0 5 votes vote down vote up
public TestHsWebServicesJobsQuery() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.hs.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #9
Source File: TestHsWebServicesTasks.java    From hadoop with Apache License 2.0 5 votes vote down vote up
public TestHsWebServicesTasks() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.hs.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #10
Source File: TestNMWebServicesApps.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestNMWebServicesApps() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.nodemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #11
Source File: TestNMWebServices.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestNMWebServices() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.nodemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #12
Source File: TestNMWebServicesContainers.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestNMWebServicesContainers() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.nodemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #13
Source File: TestRMWebServicesNodeLabels.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestRMWebServicesNodeLabels() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #14
Source File: TestRMWebServices.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestRMWebServices() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #15
Source File: TestRMWebServicesCapacitySched.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestRMWebServicesCapacitySched() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #16
Source File: TestRMWebServicesNodes.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestRMWebServicesNodes() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #17
Source File: TestRMWebServicesAppsModification.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestRMWebServicesAppsModification(int run) {
  super(new WebAppDescriptor.Builder(
    "org.apache.hadoop.yarn.server.resourcemanager.webapp")
    .contextListenerClass(GuiceServletConfig.class)
    .filterClass(com.google.inject.servlet.GuiceFilter.class)
    .clientConfig(new DefaultClientConfig(JAXBContextResolver.class))
    .contextPath("jersey-guice-filter").servletPath("/").build());
  switch (run) {
  case 0:
  default:
    // No Auth Capacity Scheduler
    injector = getNoAuthInjectorCap();
    break;
  case 1:
    // Simple Auth Capacity Scheduler
    injector = getSimpleAuthInjectorCap();
    break;
  case 2:
    // No Auth Fair Scheduler
    injector = getNoAuthInjectorFair();
    break;
  case 3:
    // Simple Auth Fair Scheduler
    injector = getSimpleAuthInjectorFair();
    break;
  }
}
 
Example #18
Source File: TestRMWebServicesApps.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestRMWebServicesApps() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #19
Source File: TestAHSWebServices.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestAHSWebServices(int round) {
  super(new WebAppDescriptor.Builder(
    "org.apache.hadoop.yarn.server.applicationhistoryservice.webapp")
    .contextListenerClass(GuiceServletConfig.class)
    .filterClass(com.google.inject.servlet.GuiceFilter.class)
    .contextPath("jersey-guice-filter").servletPath("/").build());
  this.round = round;
}
 
Example #20
Source File: TestAMWebServicesTasks.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestAMWebServicesTasks() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.app.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #21
Source File: TestAMWebServicesJobConf.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestAMWebServicesJobConf() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.app.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #22
Source File: TestAMWebServicesJobs.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestAMWebServicesJobs() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.app.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #23
Source File: TestAMWebServices.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestAMWebServices() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.app.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #24
Source File: TestAMWebServicesAttempts.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestAMWebServicesAttempts() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.app.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #25
Source File: TestHsWebServicesAttempts.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestHsWebServicesAttempts() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.hs.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #26
Source File: TestHsWebServices.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestHsWebServices() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.hs.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #27
Source File: TestHsWebServicesJobs.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestHsWebServicesJobs() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.hs.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #28
Source File: TestHsWebServicesJobsQuery.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestHsWebServicesJobsQuery() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.hs.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #29
Source File: TestHsWebServicesTasks.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TestHsWebServicesTasks() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.hs.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
Example #30
Source File: StramWebServicesTest.java    From attic-apex-core with Apache License 2.0 5 votes vote down vote up
public StramWebServicesTest()
{
  super(new WebAppDescriptor.Builder(
      StramWebServicesTest.class.getPackage().getName())
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}