1 Reply Latest reply on May 2, 2006 12:33 PM by gavin.king

    Simulate request-header with SeamTest (or workaround)

    andy.2003

      Hello,

      I set up a SeamTest which calls an action wherein the header of the request is analysed:

      String lHost = (String) facesContext.getExternalContext().getRequestHeaderMap().get("host");


      Is there a possibiltiy to set this header also in a SeamTest class? Currently I get a NullPointerException if I want to access the requestHeaderMap.

      Thanks
      - Andreas