testRunner.setTestResult(false,
"Failed because couldn't UTF-8 encode backLink parameter.");
return Constants.TEST_FAILED;
}
// Note: as we are adding a URL as a parameter make sure its properly URLEncoded -- this causes it to be doubly encoded
if (extCtx.encodeResourceURL(URL_VIEWLINK_BACKLINK_TEST_STRING).equals(extCtx.encodeActionURL(verifyString)))
{
testRunner.setTestResult(true,
"encodeResourceURL correctly encoded a viewLink with a BackLink.");
return Constants.TEST_SUCCESS;
}