This content has been marked as final.
Show 3 replies
-
1. Re: Wrong conversation component in integration tests
larshuber Mar 28, 2008 8:34 AM (in response to larshuber)In the wrong instance is even the entityClass not set (eg. null).
-
2. Re: Wrong conversation component in integration tests
larshuber Mar 28, 2008 11:24 AM (in response to larshuber)Solution: It seems that in integration tests the way of accessing/using components and its behaviour is decisive.
UserHome home = (UserHome)getValue("#{userHome}"); home.persist();
or
UserHome _home = (UserHome)getInstance("userHome"); home.persist();
do not have the same result as
invokeAction("#{userHome.persist}");
because they access not the same UserHome instance. Invoking directly the persist method with invokeAction works properly. The other two ways do not work because they are accessing different instances (all properties are null).
Can anyone explain this behaviour?
-
3. Re: Wrong conversation component in integration tests
pmuir Mar 29, 2008 4:03 PM (in response to larshuber)I think I've see this too, please file an issue in JIRA.