Sounds good.  There's huge difference between unit testing and integration
testing.  PaxExam is really suited for integration testing.

On Thu, Jun 10, 2010 at 08:37, peter lawrey <[email protected]> wrote:

> Hello Guillaume,
>  At present my tests are simple, so I was able to use JMock to mock out
> the work the OSGi/iPOJO container would do.
>  However, as I have more complex tests I will try PaxExam.
>
> Thank you,
>   Peter.
>
> -----Original Message-----
> From: Guillaume Nodet [mailto:[email protected]]
> Sent: 09 June 2010 17:19
> To: [email protected]
> Subject: Re: Simple Unit testing.
>
> Have a look at pax-exam: http://wiki.ops4j.org/display/paxexam/Pax+Exam
> This is for integration tests in OSGi, so i would not really call it
> simple
> either, mostly because you need to configure your OSGi environment, but
> it
> can be done quite easily if you write your own abstract test class which
> would do that.
>
> On Wed, Jun 9, 2010 at 17:40, peter lawrey <[email protected]>
> wrote:
>
> > Hello,
> >
> > I have read the tutorial
> >
> http://felix.apache.org/site/apache-felix-ipojo-junit4osgi-tutorial.html
> > but I didn't find it simple at all.
> >
> > Currently when I run a unit test, in my IDE I can select a single unit
> > test, a test case or a package and I select Run -> Tests.  If I want
> to
> > debug my test, I select Debug -> Tests.
> >
> > That's what I call simple.
> >
> > When I have worked with frameworks in the past, I had to add a few
> > things in the setUp() and tearDown() or extend a custom abstract
> > TestCase which did this for me, but after that the unit test ran
> > normally, in my IDE and in maven.
> >
> > Has anyone done this with OSGi/iPOJO components?
> >
> > Regards,
> >  Peter.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to