Class 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 Detail

      • TestNameProvider

        public TestNameProvider()
    • Method Detail

      • 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