我正在使用 JUnit 4.12
<dependency>
<groupId>pl.pragmatists</groupId>
<artifactId>JUnitParams</artifactId>
<version>1.0.5</version>
<scope>test</scope>
</dependency>
Run Code Online (Sandbox Code Playgroud)
我想知道哪一个是最值得推荐的使用
@Test(expected = Exception.class)或Assertions.assertThrows(...)