public class TestableUtil extends Object
| Constructor and Description |
|---|
TestableUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
currentSourceMethodName()
Get the last visit method in source file
|
static String |
currentTestCaseName(Object testClassRef)
Get current test case method
|
static String |
currentTestCaseName(String testClassName)
Get current test case method
|
static void |
markTestCaseBegin()
Do prepare when probable test case start
|
static String |
previousStackLocation()
Get file name and line number of where current method was called
|
public static String currentSourceMethodName()
public static String currentTestCaseName(Object testClassRef)
testClassRef - usually `this` variable of the test classpublic static String currentTestCaseName(String testClassName)
testClassName - name of current test classpublic static String previousStackLocation()
public static void markTestCaseBegin()
Copyright © 2020. All rights reserved.