throws PortletException, IOException
{
if (getTestName().equals(EXCEPTIONTHROWN_NODEFAULTVIEWID_TEST))
{
Bridge bridge = super.getFacesBridge(renderRequest, renderResponse);
try
{
bridge.doFacesRequest(renderRequest, renderResponse);
}
catch (BridgeDefaultViewNotSpecifiedException e)
{
outputTestResult(renderResponse, Boolean.TRUE, "Correctly threw BridgeDefaultViewNotSpecifiedException when no default defined.");
}
catch (Exception e)
{
outputTestResult(renderResponse, Boolean.FALSE, "Didn't throw BridgeDefaultViewNotSpecifiedException when no default defined.");
}
}
else if (getTestName().equals(BRIDGESETSCONTENTTYPE_TEST))
{
// By invoking the bridge directly (and not setting the contentType)
// we force the bridge to have to do the work
Bridge bridge = super.getFacesBridge(renderRequest, renderResponse);
bridge.doFacesRequest(renderRequest, renderResponse);
}
else if (getTestName().equals(VIEWIDWITHPARAM_TEST))
{
renderRequest.setAttribute(Bridge.VIEW_ID, "/tests/SingleRequestTest.jsp?param1=testValue");
super.doDispatch(renderRequest, renderResponse);