Package org.apache.wicket.behavior

Examples of org.apache.wicket.behavior.HeaderContributor.renderHead()


            return null;
          }
        };
      }
    };
    hc.renderHead(mockResponse);
    String scriptTag = sb.toString();
    assertTrue(scriptTag.contains("google")); // must be in as selected
    assertFalse(scriptTag.contains("resources/org.wicketstuff.jsl"));
    sb.setLength(0);
   
View Full Code Here


   
    // and retest
    hc = JSLib.getHeaderContribution(VersionDescriptor.exactVersion(
        Library.JQUERY, 1, 3, 1), CDN.GOOGLE);

    hc.renderHead(mockResponse);
    scriptTag = sb.toString();
    assertFalse(scriptTag.contains("google"));
    assertTrue(scriptTag.contains("resources/org.wicketstuff.jsl"));
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.