Even though neo4j is not "osgi-friendly" (what ever that means ;-) you
can create abundle that embedds all that neo4j requires, add an
Activator that starts up your db and provide a custom service to trigger
"after-test-checks" in whatever way you need. In your test you can the
collect the service to
a) make sure the db is up and running
b) fire your checks whenever needed
Am 04.08.2017 11:59, schrieb Nicolas Brasey:
Hi,
Context: I want to use pax-exam for our business integration tests
that needs to have a database (neo4j) that is not OSGi friendly
running before the test are executed. we use maven.
Also, neo4j provides a embedded server that works extremely well
outside of an OSGi container, but I can't find a way to start this
embedded server with pax-exam outside of the container before the
pax-exam machinery is starting.
The idea is to start the database in the non-OSGi context when the
pax-runner is starting, something like the beforeClass, and stop the
database after all the tests are finished ala afterClass.
Does anyone has an idea how to do this ?
Thanks
Nicolas
--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]
---
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 [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.