Re: [pax-exam] How to simulate beforeClass / afterClass hook *outside* of the OSGi container

2017-08-08 Thread Toni Menzel
yes, our ci.ops4j.org deploys successful builds to oss.sonatype.org/content/repositories/ops4j-snapshots automatically. *www.rebaze.de | www.rebaze.com | @rebazeio * On Tue, Aug 8, 2017 at 8:19 PM, 'Christoph

Re: [pax-exam] How to simulate beforeClass / afterClass hook *outside* of the OSGi container

2017-08-08 Thread 'Christoph Läubrich' via OPS4J
Hi Toni, If i see right there is some kind of snapshot repro for OPS4j maybe that would be an Option? I'm not very familar with this I just have seen that when realeasing pax-wicket. If thats not an option we might provide some kind of preview1 ... x Versions? Am 08.08.2017 09:53, schrieb

Re: CDI?

2017-08-08 Thread ranx
What I found odd about the Camel comment that Claus made is that Guillaume just put in the CDI annotations for service export and reference last year. Initially he did it with Blueprint but swapped it out with DS. I prefer working with CDI as there is a lot of testing I can do in Camel that

Re: [pax-exam] How to simulate beforeClass / afterClass hook *outside* of the OSGi container

2017-08-08 Thread Nicolas Brasey
The server mode is not enough for me, as I would like to be able to write tests against the OSGi services directly, I don't want to use the external REST api. Out of curiosity, and not knowing how exactly pax-exam works in details, what is the reason the BeforeClass and AfterClass are not

Re: [pax-exam] How to simulate beforeClass / afterClass hook *outside* of the OSGi container

2017-08-08 Thread Toni Menzel
This is the very simple server mode (i did that back then). If it is enough for you, sure. No big deal. You don't get any lifecycle integration with your test framework and you need to do the configuration for accessing your server yourself (sure, if its only rest, you have all the tools of the

Re: [pax-exam] How to simulate beforeClass / afterClass hook *outside* of the OSGi container

2017-08-08 Thread Toni Menzel
@Nicolas, I think your use case is a prime example out-of-container tests that will become more accessible with Exam 5. (Acceptance Test API). Here's the status: - There is a way to bootstrap a Test Container using the typical Exam Option DSL (done) - There is a very simple Rest Client

Re: [pax-exam] How to simulate beforeClass / afterClass hook *outside* of the OSGi container

2017-08-08 Thread Nicolas Brasey
Hi Achim, No, I'm not so much interested to test the OSGi mechanics, I want to have high level business tests on our business layer which is a set of OSGi services. This requires the database and the messaging system to run as well. In fact, our app provides only rest api's from outside, and we

Re: [pax-exam] How to simulate beforeClass / afterClass hook *outside* of the OSGi container

2017-08-08 Thread Toni Menzel
There is already work on this for Pax Exam 5. No worries. *www.rebaze.de | www.rebaze.com | @rebazeio * On Sun, Aug 6, 2017 at 4:19 AM, Niclas Hedhman wrote: > > I thought I should chip in and

Re: CDI?

2017-08-08 Thread 'Achim Nierbeck' via OPS4J
Hi, The OSGi CDI spec was never approved as the champion pushing the spec withdrew. At the time People here at OPS4j worked on a CDI implementation which should follow that spec. That's Pax CDI, but as the spec was never approved that's basically it. Though it's functional working. Besides, the