Closed GoogleCodeExporter closed 9 years ago
I just reduced the size of Xutil.class by retaining only getPortsForCircuit
method which i require and tried running, its working now.
It fails with the attached error only when you do "Coverage As" JUnit Test,
instead if you do "Run As" Junit Test it works fine even with the large file
size.
please comment on this.
Original comment by vichhu...@yahoo.com
on 10 Jun 2010 at 8:01
The issue was with PrepareForTest, where i was giving YUtil which extends Xutil
which is very large.
Now i am not preparing it for test,instead i am doing
SuppressStaticInitializationFor
This has solved the problem.
Note: still i have to do mockStatic(YUtil.class);
Original comment by vichhu...@yahoo.com
on 10 Jun 2010 at 9:33
Hmm, I know CGLib has a maximum class size limit and this is hard to get
around. Suppressing the static initializer may have the consequence that other
classes aren't loaded which may have causes your problem. I think your
workaround is ok, but you should consider refactoring your code.
Original comment by johan.ha...@gmail.com
on 14 Jul 2010 at 3:02
Original issue reported on code.google.com by
vichhu...@yahoo.com
on 10 Jun 2010 at 7:22Attachments: