Thank you @Ritesh_M for your reply, as per my understanding
requestProcessor.processRequest(req, resp, resourceResolver); statment
will assign the generated response to baos object isn't it.
getJSONFromPSPPPage method code is running perfectly fine but somehow
not for Junit. Can you please elaborate your point, I might be missing
something. Thank you one more time, appreciate all your help.
Hi All,Getting empty string for baos.toString("UTF-8") statement.
Performing below steps to invoke a workflow process passing mock
object.1. Creating mock objects for request, response and resource
resolver.2. Passing mock values, as below3. successfully getting all the
mock objects in workflow process class.Invoking getJSONFromPSPPPage
method internally from execute method, but getting empty String for
below statementString baosString = baos.toString("UTF-8");Any thoughts