0 Replies Latest reply on Mar 31, 2010 12:00 PM by elbobo19

    Unit test and send email

    elbobo19

      Hi Everybody,


      I have a problem with the unit testing. I'd like to (unit) test a class method, but in the method i have email sending command: 'renderer.render(/emails/activation.xhtml);'. During the test running i get always nullpointerexception, when on that row.


      So my question, can i test the email sending in unit test, or only in integration test (there it's working perfectly).
      Thanks forwards,
      b