spring-framework / org.springframework.test.context.junit4.statements / ProfileValueChecker / evaluate

evaluate

open fun evaluate(): Unit

Determine if the test specified by arguments to the constructor is enabled in the current environment, as configured via the IfProfileValue annotation.

If the test is not annotated with @IfProfileValue it 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 Statement in the execution chain.

Exceptions

AssumptionViolatedException - if the test is disabled

Throwable - if evaluation of the next statement fails

See Also
ProfileValueUtils#isTestEnabledInThisEnvironment(Class)ProfileValueUtils#isTestEnabledInThisEnvironment(Method, Class)