类 ProfileValueChecker
java.lang.Object
org.junit.runners.model.Statement
cn.taketoday.test.context.junit4.statements.ProfileValueChecker
public class ProfileValueChecker
extends org.junit.runners.model.Statement
ProfileValueChecker is a custom JUnit Statement that checks
whether a test class or test method is enabled in the current environment
via Framework's @IfProfileValue annotation.- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen, Philippe Marschall
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明ProfileValueChecker(org.junit.runners.model.Statement next, Class<?> testClass, Method testMethod) Construct a newProfileValueCheckerstatement. -
方法概要
修饰符和类型方法说明voidevaluate()Determine if the test specified by arguments to the constructor is enabled in the current environment, as configured via the@IfProfileValueannotation.
-
字段详细资料
-
next
private final org.junit.runners.model.Statement next -
testClass
-
testMethod
-
-
构造器详细资料
-
ProfileValueChecker
public ProfileValueChecker(org.junit.runners.model.Statement next, Class<?> testClass, @Nullable Method testMethod) Construct a newProfileValueCheckerstatement.- 参数:
next- the nextStatementin the execution chain; nevernulltestClass- the test class to check; nevernulltestMethod- the test method to check; may benullif thisProfileValueCheckeris being applied at the class level
-
-
方法详细资料
-
evaluate
Determine if the test specified by arguments to the constructor is enabled in the current environment, as configured via the@IfProfileValueannotation.If the test is not annotated with
@IfProfileValueit is considered enabled.If a test is not enabled, this method will abort further evaluation of the execution chain with a failed assumption; otherwise, this method will simply evaluate the next
Statementin the execution chain.- 指定者:
evaluate在类中org.junit.runners.model.Statement- 抛出:
org.junit.AssumptionViolatedException- if the test is disabledThrowable- if evaluation of the next statement fails- 另请参阅:
-