Package org.apache.flink.util
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 extendTestLogger.
-
-
Constructor Summary
Constructors Constructor Description TestNameProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)static StringgetCurrentTestName()
-
-
-
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:
applyin interfaceorg.junit.rules.TestRule
-
-