1 Reply Latest reply on Oct 8, 2008 11:52 PM by jamesl

    Where does getRenderedMailMessage() find the template?

    jamesl
      I have a SeamTest that calls getRenderedMailMessage("/mymessage.xhtml") and no matter where I put mymessage.xhtml I get a resource not found exception.
      Where does the template have to be put ?
      I know the template is reasonable because I can get to it from browser, with mymessage.seam

      Here is what my test looks like:

      @Test
          public void testSimpleMessage() throws Exception {
              new FacesRequest() {
                  @Override
                  protected void invokeApplication() throws Exception {
                      MimeMessage renderedMessage = getRenderedMailMessage("/mymessage.xhtml");
                      assertNotNull(renderedMessage);
                  }
              }.run();
          }


      Has anyone got this working ?