Essentially, what you're asking is if there's a way to get an object out of a running web-app, from outside the container that runs said web-app. Unless you expose the object in question through mechanisms such as jmx, rmi, jndi or other forms of webservices, the answer is no ;)

In our "tests", as far as I can remember, what we do is somehow manage to get some predictable output from the webapp the tests deploy (i.e a template that prints out the content of the context's attributes for instance) and in the test, compare that output with what we expect. It's not exactly satisfying nor very flexible, .. nor very easy/fast to work with. If you come up with other ideas, please share!

-g


On Oct 23, 2009, at 4:59 PM, Matteo Pelucco wrote:


Hi all,
is there a way to do this:

1) launch jetty from a test (jUnit / testng) in embedded mode
2) deploy magnolia inside

--- till here up&running

3) obtain MgnlContext instance from jetty

???
Matteo


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to