java.lang.ExceptionInInitializerError: null

GitHub | JavaJimFl | 8 months 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

    Mocking static methods in collaborators of CUT

    GitHub | 8 months ago | JavaJimFl
    java.lang.ExceptionInInitializerError: null

    Root Cause Analysis

    1. org.evosuite.runtime.mock.java.lang.MockRuntimeException

      Application Context has not been initialized

      at com.foo.MyFactory.getContext()
    2. Robolectric
      MyFactory.getContext
      1. com.foo.MyFactory.getContext(MyFactory.java:26)[classes/:na]
      1 frame