You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Dariusz Łuksza <da...@gmail.com> on 2010/03/04 19:46:25 UTC
[c3 monitoring] Integration tests
Hi,
I'm back on track after some time of absence.
To write integration tests I should start programaticaly cocoon with
predefined configuration's. Then test suites should connect to JMX
service and check does everything is all right.
So there are two goals:
* start cocoon from test case with predefine configuration
* write small JMX client that would only connect to JMX service and
get list of available services.
The main question is where can I find examples how to achieve first goal ?
IMHO second goal is ease to achieve.
Thanks in advance for yous help ;)
--
Best regards
Blog: http://luksza.org
LinkedIn: http://www.linkedin.com/in/dariuszluksza
Re: [c3 monitoring] Integration tests
Posted by Reinhard Pötz <re...@apache.org>.
Dariusz Łuksza wrote:
> Hi,
>
> I'm back on track after some time of absence.
Welcome back!
> To write integration tests I should start programaticaly cocoon with
> predefined configuration's. Then test suites should connect to JMX
> service and check does everything is all right.
>
> So there are two goals:
> * start cocoon from test case with predefine configuration
> * write small JMX client that would only connect to JMX service and
> get list of available services.
>
> The main question is where can I find examples how to achieve first goal ?
IIUC, the main problem is that you have to start your own VM instance,
right? Have a look at http://commons.apache.org/exec/. In this VM
instance you can start a Jetty server yourself (e.g.
http://svn.apache.org/repos/asf/cocoon/trunk/tools/cocoon-it-fw/src/main/java/org/apache/cocoon/maven/test/jetty/JettyStarterMojo.java)
HTH
--
Reinhard Pötz Managing Director, {Indoqa} GmbH
http://www.indoqa.com/en/people/reinhard.poetz/
Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member reinhard@apache.org
________________________________________________________________________