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.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
static String
getCurrentTestName()
-
-
-
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 interfaceorg.junit.rules.TestRule
-
-