コード例 #1
0
 static ResteasySpecifics()
 {
     TEST_RULE_FACTORIES[typeof(ExceptionHandlerTest)]              = new EmbeddedServerRuleFactory(new TestCustomResourceApplication());
     TEST_RULE_FACTORIES[typeof(ServletAuthenticationFilterTest)]   = new ServletContainerRuleFactory("auth-filter-servlet-web.xml");
     TEST_RULE_FACTORIES[typeof(NoServletAuthenticationFilterTest)] = new ServletContainerRuleFactory("auth-filter-no-servlet-web.xml");
     TEST_RULE_FACTORIES[typeof(ServletEmptyBodyFilterTest)]        = new ServletContainerRuleFactory("empty-body-filter-servlet-web.xml");
     TEST_RULE_FACTORIES[typeof(NoServletEmptyBodyFilterTest)]      = new ServletContainerRuleFactory("empty-body-filter-no-servlet-web.xml");
     TEST_RULE_FACTORIES[typeof(CustomJacksonDateFormatTest)]       = new ServletContainerRuleFactory("custom-date-format-web.xml");
 }
コード例 #2
0
 public ExternalResourceAnonymousInnerClass(EmbeddedServerRuleFactory outerInstance)
 {
     this.outerInstance = outerInstance;
     bootstrap          = new JerseyServerBootstrap(outerInstance.jaxRsApplication);
 }
コード例 #3
0
 static JerseySpecifics()
 {
     TEST_RULE_FACTORIES[typeof(ExceptionHandlerTest)]        = new EmbeddedServerRuleFactory(new TestCustomResourceApplication());
     TEST_RULE_FACTORIES[typeof(CustomJacksonDateFormatTest)] = new ServletContainerRuleFactory("custom-date-format-web.xml");
 }