[XOM-interest] Problem with XOM 122b3

Elliotte Harold elharo at ibiblio.org
Sat May 30 20:43:33 EDT 2009


On Thu, May 28, 2009 at 2:36 PM, Alex Blewitt <alex.blewitt at gmail.com> wrote:

> That's interesting; it's not usually the case that people ship tests in
> their man Jar/bundle. But that aside, this is actually a pretty big problem
> for OSGi. There's a number of ways of handling it:

I'm not shipping tests. I'm shipping a utility class for making tests.

> * Make the OSGi import ;resolution:=optional. This will allow the OSGi
> bundle to be used when JUnit isn't present. If it is available, it will wire
> itself up and you'll be able to use XOMTestCase. If it's not present, the
> bundle will still start, but you'll not be able to use the XOMTestCase. This
> is the direct equivalent of what you have at the moment outside the OSGi
> space. I use this myself for unit tests inside a bundle that I don't want to
> ship with the main bundle but still want to be able to compile/run them
> locally in my IDE.

So if you call it you get a NoClassDefFoundError? Sounds a bit scary to me.

-- 
Elliotte Rusty Harold
elharo at ibiblio.org


More information about the XOM-interest mailing list