src/main/java/com/deepoove/testpie/junit5/Pie.java
/**
     * init some annotations, pay attention to life cycle
     * 
     * @param instance
     */
init some annotations, pay attention to life cycle

@param instance
init some annotations pay attention to life cycle @param instance
public static void initAnnotations(Object instance) {
        initPieData(instance, instance.getClass());
        try {
            Class.forName("org.mockito.Mock");
            initMockPrimary(instance, instance.getClass());
        } catch (ClassNotFoundException e) {
        }
    }
public static void initAnnotations ( Object instance ) { initPieData ( instance , instance . getClass ( ) ) ; try { Class . forName ( "org.mockito.Mock" ) ; initMockPrimary ( instance , instance . getClass ( ) ) ; } catch ( ClassNotFoundException e ) { } }
init some annotations, pay attention to life cycle
init some annotations pay attention to life cycle
// other annotations init // no-op