|
From: Bill B. <bb...@re...> - 2008-06-27 19:38:24
|
Ok, I've removed the Spring-forked MockServletRequest/Response classes and rewrote the tests that depend on them. I have a new Mock framework under src/main/java/org/resteasy/mock static MockDispatcherFactory.createDispatcher() This creates an instance of a Dispatcher that you can invoke on in a mocked environment. MockHttpRequest/Response These methods you create and pass to Dispatcher.invoke(). They use the resteasy abstractions for http requests and responses. I'll document this before the next release so that users can use it. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |