use of org.apache.wicket.markup.html.IHeaderResponseDecorator in project wicket by apache.
the class FilteringHeaderResponseTest method footerDependsOnHeadItem.
@Test
public void footerDependsOnHeadItem() throws Exception {
tester.getApplication().setHeaderResponseDecorator(new IHeaderResponseDecorator() {
@Override
public IHeaderResponse decorate(IHeaderResponse response) {
// footer (after </body>)
return new ResourceAggregator(new JavaScriptFilteredIntoFooterHeaderResponse(response, "footerJS"));
}
});
executeTest(FilteredHeaderPage.class, "FilteredHeaderPageExpected.html");
}
Aggregations