package com.github.phantomthief.util;

import static com.github.phantomthief.util.MoreReflection.getStackTraceProvider;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertSame;

import org.junit.jupiter.api.Test;

/**
 * @author w.vela
 * Created on 2019-08-01.
 */
class MoreReflectionJdk8CompatibilityTest {

    @Test
    void test() {
        StackTraceProvider stackTraceProvider = getStackTraceProvider();
        assertNotNull(stackTraceProvider);
        assertSame(StackTraceProviderJdk8.class, stackTraceProvider.getClass());
    }
}

package com.github.phantomthief.util;

import static com.github.phantomthief.util.MoreReflection.getStackTraceProvider;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertSame;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

/**
 * @author w.vela
 * Created on 2019-08-01.
 */
class MoreReflectionJdk8CompatibilityTest {

    /**
     * 需要使用 JDK8 来测试
     */
    @Disabled
    @Test
    void test() {
        StackTraceProvider stackTraceProvider = getStackTraceProvider();
        assertNotNull(stackTraceProvider);
        assertSame(StackTraceProviderJdk8.class, stackTraceProvider.getClass());
    }
}

add jdk8-test.