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

    setValue() in SeamTest

    wuguangyi

      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() {
                  @Override
                  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}"));
                  }
              }.run();
      



      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?