Closed GoogleCodeExporter closed 9 years ago
Original comment by brice.du...@gmail.com
on 29 Nov 2012 at 9:54
Hey could you try our latest snapshot on the matter, I've tweaked mock
serialization to enable serialization/deserialization across classloaders / jVM.
Original comment by brice.du...@gmail.com
on 8 Jan 2013 at 4:48
Original comment by brice.du...@gmail.com
on 8 Jan 2013 at 4:49
I have a somewhat unusual setup and ran into similar issue. We have a test
framework written in python. It was initially used to launch C++ apps and
interact with them through some sort of transport. I have added support for
running java using pyjnius package, which is based on JNI Invocation API.
Basically cpython runs JVM in process and wraps java classes as python classes.
I have tried to take the framework a bit further and enable use of mockito,
which would be a huge improvent in writing actual test cases. However I tan
into an issue where mockito generated classes are not visible from system class
loader. Any suggestions how to get around this ?
Original comment by Eugf...@gmail.com
on 6 Feb 2013 at 10:28
Hi,
Your use case looks quite specific. I'm not sure how your stuff works, but with
JNI or even things like cpython, I cannot guarantee mockito will work fine.
About generated mocks not visible in the system classloader, I'm not sure what
you mean, but bytecode is injected at runtime in a subclassloader (not the
system classloader ; the one that is null when calling getClassloader()). So
that is expected.
At a first glance it doesn't seem related to deserialization, shall we move
this discussion on the mailing list ?
Did you tried the last snapshot of mockito ?
Cheers,
Brice
Original comment by brice.du...@gmail.com
on 8 Feb 2013 at 2:51
Original issue reported on code.google.com by
ladlest...@gmail.com
on 1 Jul 2011 at 3:50Attachments: