Announcement Announcement Module
Collapse
No announcement yet.
MockHttpRequest integration testing of BlazeDS-MessageBroker servlet/endpoints? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MockHttpRequest integration testing of BlazeDS-MessageBroker servlet/endpoints?

    Hi,
    I'd like to be able to do a java-based simulation of a browser-based flex/blazeds request on the spring-flex DispatcherServlet/MessageBroker servlet. We have very configurable security (local db, siteminder, ldap, ...), and need the ability to simulate SiteMinder in our tests by adding (mock) request headers.

    I can use the excellent Spring org.springframework.mock.web.* classes to set up the BlazeDS servlet and filters for testing. What is missing is the ability to create a MockHttpServletRequest with an AMF-formatted payload that when submitted invokes the appropriate endpoint/method, and the corresponding ability to translate the returned AMF-formatted MockHttpServletResponse back to a java-based (or xml?) payload.

    So, any examples/links to (test) code that does MockHttpServlet{Request/Response} testing of MessageBroker endpoints? If not, any client code examples/links for AMF-encoding/decoding java payloads?

    Thanks,
    Brad
Working...
X