Package org.apache.wink.server.internal.servlet

Examples of org.apache.wink.server.internal.servlet.RestServlet


        "geronimo-servlet_2.5_spec").versionAsInProject()));
  }

  @Test
  public void testRestServletResolves() {
    new RestServlet();
  }
View Full Code Here


        assertEquals(2, p4.getNumCtorHits());
       
        // to actually inspect the list in the 'data' object in the MessageBodyReaders in the ProvidersRegistry would take a lot of
        // reflection and hacking.  We'll at least confirm that only 5 (due to AssetProvider) are in the ProvidersRegistry.

        RestServlet servlet = (RestServlet)this.getServlet();
        ServletContext context = servlet.getServletContext();
        RequestProcessor processor = (RequestProcessor) context.getAttribute(RequestProcessor.class.getName());
        DeploymentConfiguration config = processor.getConfiguration();
        ProvidersRegistry providersRegistry = config.getProvidersRegistry();
        // to confirm that the ignores are indeed happening, I need to get the private field
        // "messageBodyReaders" object, then it's superclass "data" object and inspect it:
View Full Code Here

        "geronimo-servlet_2.5_spec").versionAsInProject()));
  }

  @Test
  public void testRestServletResolves() {
    new RestServlet();
  }
View Full Code Here

TOP

Related Classes of org.apache.wink.server.internal.servlet.RestServlet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.