Package org.apache.wicket.request.resource

Examples of org.apache.wicket.request.resource.JavaScriptPackageResource


  @Test
  public void javascriptFileWithEncoding()
  {
    final String encoding = "Klingon-8859-42";
    final JavaScriptPackageResource resource = new JavaScriptPackageResource(
      PackageResourceTest.class, "packaged3.js", null, null, null)
    {
      private static final long serialVersionUID = 1L;
    };
    resource.setTextEncoding(encoding);
    tester.startResource(resource);
    final String contentType = tester.getLastResponse().getContentType();
    assertEquals("text/javascript; charset=" + encoding, contentType);
  }
View Full Code Here


  @Test
  public void javascriptFileWithEncoding()
  {
    final String encoding = "Klingon-8859-42";
    final JavaScriptPackageResource resource = new JavaScriptPackageResource(
      PackageResourceTest.class, "packaged3.js", null, null, null)
    {
      private static final long serialVersionUID = 1L;
    };
    resource.setTextEncoding(encoding);
    tester.startResource(resource);
    final String contentType = tester.getLastResponse().getContentType();
    assertEquals("text/javascript; charset=" + encoding, contentType);
  }
View Full Code Here

  @Test
  public void javascriptFileWithEncoding()
  {
    final String encoding = "Klingon-8859-42";
    final JavaScriptPackageResource resource =
      new JavaScriptPackageResource(PackageResourceTest.class, "packaged3.js", null, null, null)
      {
        private static final long serialVersionUID = 1L;
      };
    resource.setTextEncoding(encoding);
    tester.startResource(resource);
    final String contentType = tester.getLastResponse().getContentType();
    assertEquals("text/javascript; charset=" + encoding, contentType);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.resource.JavaScriptPackageResource

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.