Update TestFrameworksUtil.java

This commit is contained in:
LynnBroe
2023-04-19 17:01:56 +08:00
parent ddac2a0404
commit 1a488c79a4

View File

@ -79,6 +79,8 @@ public final class TestFrameworksUtil {
|| method.isAnnotationPresent("org.junit.BeforeClass")
|| method.isAnnotationPresent("org.junit.After")
|| method.isAnnotationPresent("org.junit.AfterClass")
|| method.isAnnotationPresent("org.testng.annotations.AfterClass")
|| method.isAnnotationPresent("org.testng.annotations.BeforeClass")
|| isJUnit3Class(method.getEnclosingType())
&& ("setUp".equals(method.getName())
|| "tearDown".equals(method.getName()));