ah ok, slowly we're getting to the core of the problem :) (see inline for
further answers)

On Tue, Jan 25, 2011 at 07:46:29PM +0100, Luca Stancapiano wrote:
>    Right... I need to create a osgi service that extends an existent
>    service. This existent service incapsulates many osgi components. The
>    questions are:
> 
>    1 - how test my service inside pax-exam? Am I forced to add manually
>    all osgi components or can I simulate a complete deploy as for felix?

yep, basically you are. You've to re-setup the environment as it is in reality;
well pax-exam is a full integration-test framework; if you want to simply test
single components you may be better using a plain mocking framework or
spring-dm-mock or something like this

>    2 - if I can emulate a complete deploy , how?

@ how this should help:

http://wiki.ops4j.org/display/paxexam/User+guide

if you have more explicit questions don't hestiate to ask again

kind regards,
andreas

>    I'm using a plain osgi.
>    On Tue, Jan 25, 2011 at 7:24 PM, Andreas Pieber <[1]anpie...@gmail.com>
>    wrote:
> 
>      mhm, I'm still not completely sure where's exactly your problem.
>      To recapitulate:
>      you have a ServiceInterface and you want to make this public via
>      osgi to a) use
>      it in the "final" osgi runtime environment and in pax-exam?! Right?
>      Are you
>      using "plain" osgi or spring-dm/blueprint?
>      kind regards,
>      andreas
> 
>    On Tue, Jan 25, 2011 at 07:18:35PM +0100, Luca Stancapiano wrote:
>    >    Thanks Andreas.....
>    >
>    >    my goal is testing an existent service inside a bundle. This
>    service
>    >    incapsulates many other components so I don't want configure
>    manually
>    >    all the dependencies. May you give me some configuration example
>    to
>    >    deploy this service?
> 
>      >    On Tue, Jan 25, 2011 at 7:03 PM, Andreas Pieber
>      <[1][2]anpie...@gmail.com>
> 
>    >    wrote:
>    >
>    >      I'm not completely sure y pax-exam should do this. You have to
>    >      options:
>    >      1) you want to deploy a service in a real/runtime environment:
>    >      then you have to export it anyhow, otherwise it wont run in your
>    >      "real"
>    >      environment afterwards
>    >      2) you dont want to deploy a service in a real/runtime
>    environmetn:
>    >      then the service should not be tested and isn't a service in
>    fact
>    >      (not really at
>    >      least :))
>    >      kind regards,
>    >      andreas
>    >
>    >    On Tue, Jan 25, 2011 at 06:55:26PM +0100, Luca Stancapiano wrote:
>    >    >    Hi all....
>    >    >
>    >    >    Reading the documentation seems that I need to configure
>    manually
>    >    the
>    >    >    services of a bundle that I would test. Can I simply put the
>    >    bundle
>    >    >    information in PAX so it execute the whole deploy inside
>    felix
>    >    >    (included services and components)?
>    >
>    >      > _______________________________________________
>    >      > general mailing list
> 
>      >      > [2][3]general@lists.ops4j.org
>      >      > [3][4]http://lists.ops4j.org/mailman/listinfo/general
>      >      _______________________________________________
>      >      general mailing list
>      >      [4][5]general@lists.ops4j.org
>      >      [5][6]http://lists.ops4j.org/mailman/listinfo/general
>      >
>      > References
>      >
>      >    1. mailto:[7]anpie...@gmail.com
>      >    2. mailto:[8]general@lists.ops4j.org
>      >    3. [9]http://lists.ops4j.org/mailman/listinfo/general
>      >    4. mailto:[10]general@lists.ops4j.org
>      >    5. [11]http://lists.ops4j.org/mailman/listinfo/general
> 
>    > _______________________________________________
>    > general mailing list
>    > [12]general@lists.ops4j.org
>    > [13]http://lists.ops4j.org/mailman/listinfo/general
> 
>      _______________________________________________
>      general mailing list
>      [14]general@lists.ops4j.org
>      [15]http://lists.ops4j.org/mailman/listinfo/general
> 
> References
> 
>    1. mailto:anpie...@gmail.com
>    2. mailto:anpie...@gmail.com
>    3. mailto:general@lists.ops4j.org
>    4. http://lists.ops4j.org/mailman/listinfo/general
>    5. mailto:general@lists.ops4j.org
>    6. http://lists.ops4j.org/mailman/listinfo/general
>    7. mailto:anpie...@gmail.com
>    8. mailto:general@lists.ops4j.org
>    9. http://lists.ops4j.org/mailman/listinfo/general
>   10. mailto:general@lists.ops4j.org
>   11. http://lists.ops4j.org/mailman/listinfo/general
>   12. mailto:general@lists.ops4j.org
>   13. http://lists.ops4j.org/mailman/listinfo/general
>   14. mailto:general@lists.ops4j.org
>   15. http://lists.ops4j.org/mailman/listinfo/general

> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general

Attachment: pgpNNMVrhhGNm.pgp
Description: PGP signature

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to