//Action only
if (actionCount == 1 && eventCount == 0)
{
ActionRequest actionRequest = (ActionRequest)portletRequest;
//SPEC:248
try
{
// request was already read
request.setCharacterEncoding("utf8");
assertTrue(false);
}
catch (IllegalStateException e)
{
//expected
}
assertEquals(actionRequest.getCharacterEncoding(), request.getCharacterEncoding());
assertEquals(actionRequest.getContentType(), request.getContentType());
//TODO: How to check if its the same behaviour as in PR? Its not the same object.
assertNotNull(request.getInputStream());
assertEquals(actionRequest.getContentLength(), request.getContentLength());
assertEquals(actionRequest.getMethod(), request.getMethod());
// Underlaying impl invoke getImputStream so cannot test in single request
//assertEquals(actionRequest.getReader(), request.getReader());
}
//Event only