Class CurrentTestContext

java.lang.Object
com.github.seregamorph.testsmartcontext.CurrentTestContext

public class CurrentTestContext extends Object
Utility class to obtain current integration test class (executed by SpringExtension, SpringJUnit4ClassRunner or extending AbstractTestNGSpringContextTests depending on test framework).
Author:
Sergey Chernov
  • Method Details

    • getCurrentTestClassName

      @Nullable public static String getCurrentTestClassName()
      Get current test class name. It's only defined for integration test classes and for the same thread as test engine.