Class ProfileValueChecker

java.lang.Object
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.ProfileValueChecker

public class ProfileValueChecker extends Statement
ProfileValueChecker is a custom JUnit Statement that checks whether a test class or test method is enabled in the current environment via Spring's @IfProfileValue annotation.
Since:
4.2
Author:
Sam Brannen, Philippe Marschall
See Also:
  • Constructor Details

    • ProfileValueChecker

      public ProfileValueChecker(Statement next, Class<?> testClass, @Nullable Method testMethod)
      Construct a new ProfileValueChecker statement.
      Parameters:
      next - the next Statement in the execution chain; never null
      testClass - the test class to check; never null
      testMethod - the test method to check; may be null if this ProfileValueChecker is being applied at the class level
  • Method Details