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
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
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
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
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