You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Christian Schneider <ch...@die-schneider.net> on 2018/04/17 06:51:16 UTC
Some tipps and tricks for writing pax exam OSGi tests
I have just finished an example and docs of some tips and tricks I learned
for writing OSGi tests using pax exam.
Some highlights:
- Mock tests for DS components using Mockito
- Debug pax exam based tests like plain java code (edit, save, debug)
- Full support for hamcrest matchers
- Use Awaitility for polling asynchronous external systems
- Create test bundles with bnd and DS components on the fly using
TinyBundles
- Use logback in pax exam
See
https://github.com/cschneider/osgi-testing-example
Cheers
Christian
--
--
Christian Schneider
http://www.liquid-reality.de
Computer Scientist
http://www.adobe.com
Re: Some tipps and tricks for writing pax exam OSGi tests
Posted by João Assunção <jo...@exploitsys.com>.
Very nice Christian.
Thank you for the effort you put into those examples. I already managed to
learn something new and add some new things to my tool belt.
Keep up with the good work.
Regards,
João Assunção
Email: joao.assuncao@exploitsys.com
Mobile: +351 916968984
Phone: +351 211933149
Web: www.exploitsys.com
On Tue, Apr 17, 2018 at 7:51 AM, Christian Schneider <
chris@die-schneider.net> wrote:
> I have just finished an example and docs of some tips and tricks I learned
> for writing OSGi tests using pax exam.
>
> Some highlights:
>
> - Mock tests for DS components using Mockito
> - Debug pax exam based tests like plain java code (edit, save, debug)
> - Full support for hamcrest matchers
> - Use Awaitility for polling asynchronous external systems
> - Create test bundles with bnd and DS components on the fly using
> TinyBundles
> - Use logback in pax exam
>
> See
> https://github.com/cschneider/osgi-testing-example
>
> Cheers
> Christian
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Computer Scientist
> http://www.adobe.com
>
>