Skip to content

环境安装

JUnit 5在运行时需要Java 8(或更高版本)

maven依赖:

<dependencies>

    <!--   核心注解     -->
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-engine</artifactId>
        <version>5.5.2</version>
        <scope>test</scope>
    </dependency>

    <!--   参数化测试     -->
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-params</artifactId>
        <version>5.5.2</version>
        <scope>test</scope>
    </dependency>

</dependencies>