hi,

I'm trying to optimize some tests which start (and stop) a database daemon and 
searching for a smart way to share the configured port.

Currently the port is allocated and written to a component configuration in a 
method annotated with @Configuration and the daemon is started in this method 
also.

Exam calls this method several times – (Karaf) framework and driver – which 
starts the daemon several times also. This works all fine but should be 
optimized to a single start of the daemon (per test class).

How can the driver access a value of the framework VM which can then be used 
in methods annotated with @BeforeClass and @AfterClass?

Or is there a way to allocate the port in the driver (not Maven) before the 
framework configuration is done?

Thanks,
O.

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to