Question

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?

Was it helpful?

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.

OTHER TIPS

While the Stripes mock framework does a good job, I often find it cleaner to just unit test the action bean as if it were just a POJO. For more complex test I use Mockito (or EasyMock).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top