>
>
> Hi,
>
> I'm trying to include Junit test to a framework.
> I decided to start with something easy : My Logging Service.
>
> I'm using pico & nano container, Log4J & commons-logging, WSAD 5.1 as IDE.
>
> When i run my logging test i get this :
>
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.commons.logging.Log' visible, which is not allowed.
>
> but, if i run the same code in a stand alone classes : no problem.
> If i run the code in the main method of my testClass (before
> TestRunner.run(TestLogs.class);): no problem.
> If i run the test with the text testrunner : no problem.
>
> But with awt or swing UI, i get this error...
Have you tried using the JUnit test runner that ships with Eclipse/WSAD?
> Can anyone help me?
>
> I've found nothing in the FAQ.
>
> Do i have to add .org.apache.* in
> junit/runner/excluded.properties ?
That might help.
I've never seen that, though: more than one version of a class being
visible should not be an error, even though it might make for difficult
debugging.
--
J. B. (Joe) Rainsberger
Diaspar Software Services
http://www.diasparsoftware.com
Author, JUnit Recipes: Practical Methods for Programmer Testing
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/junit/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
