0 Replies Latest reply on Apr 6, 2009 10:18 PM by George Wu

    setValue() in SeamTest

    George Wu Newbie

      I am trying to create my first unit test in Seam after creating a small project in eclipse following the steps in Seam In Action.

              new ComponentTest() {
                  protected void testComponents() throws Exception {
                      CourseHome courseHome = (CourseHome) Component.getInstance(CourseHome.class);
                      System.out.println("courseHome: " + courseHome);
                      setValue("#{abc}", "abc");
                      System.out.println("abc: " + getValue("#{abc}"));

      And I got the following output:

      courseHome: org.open18.action.CourseHome@399c02
      abc: null

      Why is the #{abc} null? Which context does setValue() set to?