Class ProfileValuechecker

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

@Deprecated(since="7.0") public class ProfileValuechecker extends Statement
Deprecated.
since Spring Framework 7.0 in favor of the SpringExtension and JUnit Jupiter
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)
      Deprecated.
      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