This content has been marked as final.
Show 1 reply
-
1. Re: Accessing @SessionScoped bean across tests
mpittkin Mar 8, 2018 11:36 AM (in response to mpittkin)I finally noticed the mention of weld embedded container in the documentation that talks about active scopes in tests. After some wrangling with the wrong maven dependency for that, I finally got an example working with the weld embedded container 1.1, and in that case it works. So it seems it only works with that particular container? That would be a pretty nice thing to have working with other containers, is that not technically feasible?
It seems like it would severely limit the usefulness of that particular feature, because if you want to run tests across different containers, a test that depends on that behavior will fail for all containers except the embedded weld container. Am I correct in thinking that?
Thanks,
Morgan