"Failed because couldn't UTF-8 encode backLink parameter.");
return Constants.TEST_FAILED;
}
// According to bridge rules since string passed in isn't xml strict encoded the result won't be as well
// So ensure compares match by stripping from the one generated by the portlet container (if it exists)
if (extCtx.encodeResourceURL(URL_BACKLINK_TEST_STRING).equals(((PortletResponse) extCtx.getResponse()).encodeURL(verifyString).replace("&", "&")))
{
testRunner.setTestResult(true,
"encodeResourceURL correctly encoded an URL with a backLink.");
return Constants.TEST_SUCCESS;
}