Mockito based test code does not work any more by migrating from Fuse 6.x to 7.x

Solution Verified - Updated -

Issue

By migrating mockito based test code from Fuse 6.x to Fuse 7.x, it does not work any more with Exception.

java.lang.ClassCastException: org.mockito.internal.creation.jmock.ClassImposterizer$ClassWithSuperclassToWorkAroundCglibBug$$EnhancerByMockitoWithCGLIB$$xxxx cannot be cast to java.lang.String

Environment

  • Red Hat Fuse
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content