Hi Toni, These examples help. Answer me one question, you can add behavior mock-classes? (Similar to objects created by EasyMock.) See my test scenario: My bundle (which will be tested) depends on other bundles. I want to simulate these bundles using TinyBundles.(ok?)But these bundles need to expose OSGI services and simulate behavior. For when my bundle-test invoke the services, they have to respond as previously defined. Do you understand? Is there a way to do this? Regards, Rodolfo Barbeiro Date: Tue, 26 Jul 2011 23:47:37 +0200 Subject: Re: Pax-Exam: How to create bundle mocks using tinybundles? From: [email protected] To: [email protected]
You can also have a quick look at pure tiny bundles examples:http://team.ops4j.org/wiki/display/ops4j/Tinybundles Or at a very recent use case from Neo4J (using Exam + Tinybundles) : https://github.com/neo4j/neo4j-osgi/blob/master/examples/src/test/java/org/neo4j/examples/osgi/OSGiTest.java I am adding dedicated examples for TB in the Exam-Learn Project once 2.2.1 is out (which will contain a crucial isolation bug fix in NativeContainer) hope this helps ? Toni On Tue, Jul 26, 2011 at 10:19 PM, Andreas Pieber <[email protected]> wrote: Please take a look at the pax wicket integration tests. I do it there. On mobile so no direct link but it's also on github.com/ops4j in the itest project Kind regards Andreas On Jul 26, 2011 6:58 PM, "Rodolfo Barbeiro" <[email protected]> wrote: > > > > > Hi Everyone! Does anyone have an example or can tell me how I can create > bundles mocks using tinybundles? Thanks! Rodolfo Barbeiro. > _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general -- Toni Menzel Source _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
