/**
*
*/
public void testAssertComponentOnAjaxResponse()
{
final Page page = new MockPageWithLink();
AjaxLink ajaxLink = new AjaxLink(MockPageWithLink.LINK_ID)
{
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target)
{
// Replace the link with a normal Link
Link link = new Link(MockPageWithLink.LINK_ID)
{
private static final long serialVersionUID = 1L;
public void onClick()
{
// Do nothing
}
};
link.setOutputMarkupId(true);
page.replace(link);
target.addComponent(link);
}
};
ajaxLink.setOutputMarkupId(true);
page.add(ajaxLink);
tester.startPage(new ITestPageSource()
{
private static final long serialVersionUID = 1L;