Search code examples
unit-testinghttpmockingstripes

Setting request body in controller testing with Stripes


I'm creating an ActionBean that takes a request that contains an XML message. Is there a way for me to simulate this operation using the mocking framework included in Stripes?


Solution

  • I just realized I could probably just mock it from a custom ActionBeanContext method while the actual application context implementation will access the request object directly.