I got an excellent workaround here
http://blogs.bytecode.com.au/glen/2006/10/12/doing-bytecode-kungfu-wi...
JAVASSIST rocks!!!!!!!!!!!!
But PowerMock still need to figure out this problem...its still open
But wait..........I am stuck again
My testcase works fine when runs alone, but when run with Ant, it
gives problem. Might be other test cases of different files are
interfering.
I got the same error, when my individual test case was using
@PrepareTest & easymock/powermock
[testng] ====================STATIC
CALLED===========================
[testng] javassist.CannotCompileException: by
java.lang.LinkageError: loader (instance of sun/misc/Launcher
$AppClass
Loader): attempted duplicate class definition for name: "com/symantec/
mobius/aggregator/submission/SubmissionFactory"
[testng] at javassist.ClassPool.toClass(ClassPool.java:1085)
[testng] at javassist.ClassPool.toClass(ClassPool.java:1028)
[testng] at javassist.ClassPool.toClass(ClassPool.java:986)
[testng] at javassist.CtClass.toClass(CtClass.java:1110)
On Jan 11, 10:48 am, Sumit Kumar <
sksum...@gmail.com> wrote:
> I got an excellent workaround herehttp://
blogs.bytecode.com.au/glen/2006/10/12/doing-bytecode-kungfu-wi...