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

    Unit test and send email

    Bence Lovas Newbie

      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