Search in sources :

Example 1 with IPageAndComponentProvider

use of org.apache.wicket.core.request.handler.IPageAndComponentProvider in project wicket by apache.

the class BehaviorRequestTest method urlForBehavior.

private String urlForBehavior(Behavior behaviorUnderTest) {
    final int index = page.container.getBehaviorId(behaviorUnderTest);
    final IPageAndComponentProvider provider = new PageAndComponentProvider(page, page.container);
    final IRequestHandler handler = new ListenerRequestHandler(provider, index);
    return tester.urlFor(handler).toString();
}
Also used : IRequestHandler(org.apache.wicket.request.IRequestHandler) PageAndComponentProvider(org.apache.wicket.core.request.handler.PageAndComponentProvider) IPageAndComponentProvider(org.apache.wicket.core.request.handler.IPageAndComponentProvider) IPageAndComponentProvider(org.apache.wicket.core.request.handler.IPageAndComponentProvider) ListenerRequestHandler(org.apache.wicket.core.request.handler.ListenerRequestHandler)

Aggregations

IPageAndComponentProvider (org.apache.wicket.core.request.handler.IPageAndComponentProvider)1 ListenerRequestHandler (org.apache.wicket.core.request.handler.ListenerRequestHandler)1 PageAndComponentProvider (org.apache.wicket.core.request.handler.PageAndComponentProvider)1 IRequestHandler (org.apache.wicket.request.IRequestHandler)1