0 Replies Latest reply on Jan 20, 2010 4:57 PM by Jaaouane Aymen

    Problem with seam integration testing

    Jaaouane Aymen Newbie
      Hi all,

      I'am seam newbie,

      I have created a seam project under eclipse using SeamGen. I followed the example of the seam reference documentation in chapter 37 and i created a class extending SeamTest like the example.
      I want to test an ejb which contains a parametrized method.
      I succeeded in testing methods without parameters otherwise i failed to pass a parameter to others method which have parameters.

      Below a snippet of my source code :

      Parameter newParameter=new Parameter();
      newParameter.setLabel("newLabel");
      newParameter.setValue("newValue");
      newParameter.setId(oldParameterId);
      invokeMethod("#{parameterAction.update(newParameter)}");

      when i debug the code, newParameter has the null value, Can you help me?