RE: Failing to find system resouces in unit test in surefire

2006-12-25 Thread Benson Margulies
system resouces in unit test in surefire I'm not a surefire expert, this is just from taking a quick look at the source: However you run Surefire (forked or not, with child delegation or not), the system classloader will not contain your test code. In forked mode, it will only contain surefire and

Re: Failing to find system resouces in unit test in surefire

2006-12-25 Thread Tom Huybrechts
I'm not a surefire expert, this is just from taking a quick look at the source: However you run Surefire (forked or not, with child delegation or not), the system classloader will not contain your test code. In forked mode, it will only contain surefire and your testing framework. Surefire itself

Re: Failing to find system resouces in unit test in surefire

2006-12-24 Thread Wendy Smoak
On 12/24/06, Benson Margulies <[EMAIL PROTECTED]> wrote: I have a class that calls ClassLoader.getSystemResourceAsStream to retrieve an XML file. All is well when running the live code, and even when running JUnit from Eclipse. From surefire, the XML file is not found. I sense that I'm missing

Re: Failing to find system resouces in unit test in surefire

2006-12-24 Thread Stephen Coy
Is your XML file in src/test/resources? On 25/12/2006, at 4:28 AM, Benson Margulies wrote: I have a class that calls ClassLoader.getSystemResourceAsStream to retrieve an XML file. All is well when running the live code, and even when running JUnit from Eclipse. From surefire, the XML file is n

Failing to find system resouces in unit test in surefire

2006-12-24 Thread Benson Margulies
I have a class that calls ClassLoader.getSystemResourceAsStream to retrieve an XML file. All is well when running the live code, and even when running JUnit from Eclipse. From surefire, the XML file is not found. I sense that I'm missing something about class paths, but I can't find anything reall