Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Problem with XOM 122b3

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT ibiblio.org>
  • To: Alex Blewitt <alex.blewitt AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Problem with XOM 122b3
  • Date: Sat, 30 May 2009 17:43:33 -0700

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



  • Re: [XOM-interest] Problem with XOM 122b3, Elliotte Harold, 05/30/2009

Archive powered by MHonArc 2.6.24.

Top of Page