Re: [c3 monitoring] Integration tests

2010-03-06 Thread Reinhard Pötz
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  reinh...@apache.org



[c3 monitoring] Integration tests

2010-03-04 Thread Dariusz Łuksza
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