Package org.apache.wicket.core.util.resource

Examples of org.apache.wicket.core.util.resource.WebExternalResourceStream


   */
  // FIXME WebExternalResourceStream does not implement length()
  @Test
  public void webExternalResource() throws Exception
  {
    WebExternalResourceStream resource = new WebExternalResourceStream("/index.html");
    ResourceStreamRequestHandler rt = new ResourceStreamRequestHandler(resource);
    tester.processRequest(rt);
    assertTrue(tester.getContentTypeFromResponseHeader().startsWith("text/html"));
    tester.assertContains("<h1>Hello, World!</h1>");
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.core.util.resource.WebExternalResourceStream

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.