1 Reply Latest reply on May 2, 2006 12:33 PM by Gavin King

    Simulate request-header with SeamTest (or workaround)

    Andreas Berger Newbie


      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.

      - Andreas