Class PremainAttach

java.lang.Object
org.mockito.internal.PremainAttach

public class PremainAttach extends Object
Allows users to specify Mockito as a Java agent where the Instrumentation instance is stored for use by the inline mock maker. The JEP 451, delivered with JDK 21, is the first milestone to disallow dynamic loading of by default which will happen in a future version of the JDK.
  • Constructor Details

    • PremainAttach

      public PremainAttach()
  • Method Details