Class TestNameProvider

java.lang.Object
org.apache.flink.util.TestNameProvider
All Implemented Interfaces:
org.junit.rules.TestRule

public class TestNameProvider extends Object implements org.junit.rules.TestRule
A rule that provides the current test name per thread. Currently, the test name is available for all tests that extend TestLogger.
  • Constructor Details

    • TestNameProvider

      public TestNameProvider()
  • Method Details

    • getCurrentTestName

      @Nullable public static String getCurrentTestName()
    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Specified by:
      apply in interface org.junit.rules.TestRule