Re: Custom classloader

"Aaron VonderHaar [email protected] [junit]" <[email protected]> Sun, 17 May 2015 23:59:42 -0700
Newsgroups gmane.comp.java.junit.user
Message-ID <CAMZecXm5oZmKHXsdd70wZOgKq8+0F5Eivy5CZQg1RyYUpUofQQ@mail.gmail.com>
I know the robolectric test runner [1] sets up a custom ClassLoader, but my
understanding is that it has to do some weird things to make that work due
to the fact that the test class has already been loaded by the time the
TestRunner starts and as a result the classes being tested have already
been loaded.  I don't know much about the details beyond that.

[1]:
https://github.com/robolectric/robolectric/blob/master/robolectric/src/main/java/org/robolectric/RobolectricTestRunner.java

On Thu, May 14, 2015 at 5:34 PM, [email protected] [junit] <
[email protected]> wrote:

>
>
> I’d like need to use a custom ClassLoader for my tests. Can it be done?
>
> Thanks,
>
>
>
> Johannes.
>
>
>  
>