0 Replies Latest reply on May 15, 2009 10:17 PM by Israel Fonseca

    UnitTest Seam

    Israel Fonseca Apprentice
      How can i unitTest a method like this:

      public class PersonBO{

      EntityManager em;

      FacesMessages facesMessages;

      public void persist(Person p){
      facesMessages.add("Sucess!" + p.getName());

      How would i mock the facesMessages? How could i confirm if the message is "Sucess!Jhon"? To use the seam-container outside the web, i just need to have all the libs in the classpath?