java.lang.NoClassDefFoundError: Could not initialize class org.spockframework.mock.runtime.ProxyBasedMockFactory$CglibMockFactory$ConstructorFriendlyEnhancer

Google Groups | Vetle Leinonen-Roeim | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Spock with JDK 1.8 and non-interface types

    Google Groups | 3 years ago | Vetle Leinonen-Roeim
    java.lang.NoClassDefFoundError: Could not initialize class org.spockframework.mock.runtime.ProxyBasedMockFactory$CglibMockFactory$ConstructorFriendlyEnhancer

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class org.spockframework.mock.runtime.ProxyBasedMockFactory$CglibMockFactory$ConstructorFriendlyEnhancer

      at org.spockframework.mock.runtime.ProxyBasedMockFactory$CglibMockFactory.createMock()
    2. Spock Framework - Core Module
      ProxyBasedMockFactory$CglibMockFactory.createMock
      1. org.spockframework.mock.runtime.ProxyBasedMockFactory$CglibMockFactory.createMock(ProxyBasedMockFactory.java:80)
      1 frame