4 Replies Latest reply on Jan 14, 2008 8:29 AM by Levent Aksu

    how to set parameters in user integration tests

    Berkay Aktan Newbie

      i ve a little question about user integration test w testNG.

      new FacesRequest() {
       protected void invokeApplication() {
       Session hibernateSession = (Session) Component.getInstance("hibernateSession");
       Parent parent = (Category)(hibernateSession.get(Category.class, 1L));
       assert parent!=null;
       setValue("#{parentCategory}",parent); // ??????
       assert invokeMethod("#{categoryAction.remove(parent)}").equals("categoryMain");

      How can i set parent instance for to remove at categoryAction ?