Hey Ken,

I don't think that exam 2.x runs with java < 1.5.

For source examples though
https://github.com/ops4j/org.ops4j.pax.exam2/tree/master/it-regression is a
good starting point.

Kind regards,
Andreas

On Thu, Dec 8, 2011 at 08:59, Ken Gilmer <kgil...@gmail.com> wrote:

> Thanks Andreas, Karl, and Arjun!
>
> Andreas,
>
>  I spent some time learning the basics of Pax Exam.  One of my
> particular requirements is JUnit3/Java1.4.  I see it mentioned in a
> JIRA issue that support has been added but cannot find a suitable
> example of how this works.  Ideally for me, the Pax Exam documentation
> would contain the initial description of what Pax Exam is, and then
> want to see only a maven-based project with:
>
> a) a service definition (public api)
> b) some implementation (private)
> c) a test that gets the service and executes a method via junit
> d) the minimal POM that builds the regular bundle and also runs the junit
> test
>
>  The existing example code is helpful but doesn't really answer my
> immediate needs of getting started quickly, (as one who is not too
> familiar with Maven yet).
>
> Karl,
>
>  Regarding PojoSR, I probably do not need a full OSGi framework for
> my tests, so it could be suitable for me.  However I need a bit more
> guidance on how to set up running a test (I can visualize how to
> compose a test) in Maven.  Can you point me to an existing pom.xml
> that uses PojoSR to execute JUnit tests against a service?
>
>  Regarding bnd, it seems to utilize Ant makefiles.  I'd like to avoid
> that if possible.  Nothing against Ant, in fact I have my own
> Ant-based osgi test framework, but I'd like to keep the test stuff as
> simple as I can and keep things in Maven.
>
> Arjun,
>
>  For me, the most difficult part is the Maven integration.  I want
> the tests to run and fail as part of the build.  In any case it's good
> to know you've got that, I'll check it out.
>
> thx,
> ken
>
>
>
> On Tue, Dec 6, 2011 at 6:56 PM, Karl Pauls <karlpa...@gmail.com> wrote:
> > To use PojoSR for testing with your dependencies from maven I guess
> > you could just use the exec-maven-plugin, hook it up to the test phase
> > and have it start with all dependencies from the test scope.
> >
> > regards,
> >
> > Karl
> >
> > On Tue, Dec 6, 2011 at 9:25 AM, Karl Pauls <karlpa...@gmail.com> wrote:
> >> If you are looking for real integration testing, Pax Exam is probably
> >> what you want.
> >>
> >> However, if you want to test you services without a full OSGi
> >> framework you might want to have  a look at PojoSR:
> >>
> >> http://pojosr.googlecode.com
> >>
> >> I know that some people use it for JUnit testing their services.
> >> Finally, bnd itself can be used for testing (we use that in the
> >> framework) and it is used by the OSGi ct.
> >>
> >> regards,
> >>
> >> Karl
> >>
> >> On Tue, Dec 6, 2011 at 9:17 AM, Andreas Pieber <anpie...@gmail.com>
> wrote:
> >>> Hey Ken,
> >>>
> >>> You might want to give Pax Exam a look for integration tests with OSGi:
> >>> http://team.ops4j.org/wiki/display/paxexam/Pax+Exam
> >>>
> >>> Kind regards,
> >>> Andreas
> >>>
> >>> On Tue, Dec 6, 2011 at 09:11, Ken Gilmer <kgil...@gmail.com> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>>  I'd like to begin adding some test cases to the httplite bundle.
>  Ideally
> >>>> I'd like my tests executed within an OSGi context so I don't have to
> mock
> >>>> anything, and the test environment is as close as possible to a real
> >>>> instance.  Also I'd like my tests to execute as part of the maven
> build
> >>>> process.  Can anyone suggest an existing and somewhat current Felix
> project
> >>>> that does this or provide other suggestions?
> >>>>
> >>>> Thanks!
> >>>> ken
> >>>>
> >>
> >>
> >>
> >> --
> >> Karl Pauls
> >> karlpa...@gmail.com
> >> http://twitter.com/karlpauls
> >> http://www.linkedin.com/in/karlpauls
> >> https://profiles.google.com/karlpauls
> >
> >
> >
> > --
> > Karl Pauls
> > karlpa...@gmail.com
> > http://twitter.com/karlpauls
> > http://www.linkedin.com/in/karlpauls
> > https://profiles.google.com/karlpauls
>

Reply via email to