java.lang.ExceptionInInitializerError: null

GitHub | JavaJimFl | 4 months ago
  1. 0

    Mocking static methods in collaborators of CUT

    GitHub | 4 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