This content has been marked as final.
Show 3 replies
-
1. Re: How do we provide conversationId for unit testing?
christian.bauer Jan 24, 2008 7:12 AM (in response to thejavafreak)Several examples do that, look at the /wiki example.
-
2. Re: How do we provide conversationId for unit testing?
thejavafreak Jan 24, 2008 11:48 PM (in response to thejavafreak)Hi Christian,
Thanks for the hint. I've created an example to be used for integration testing http://joshuajava.wordpress.com/2008/01/25/providing-conversationid-for-testing-in-seam/.
I was wondering whether that is the right way to do it.
Thanks in advance, -
3. Re: How do we provide conversationId for unit testing?
pmuir Jan 25, 2008 5:06 AM (in response to thejavafreak)You should do an integration test and use FacesRequest
String cid = new FacesRequest("/foo.xhtml") { ... }.run(); new FacesRequest("/bar.xhtml", cid) { }.run();
and so on.