Package org.approvej.verify
Class StackTraceTestFinderUtil
java.lang.Object
org.approvej.verify.StackTraceTestFinderUtil
Utility class to find the current test method using the stack trace.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Path
findTestSourcePath
(Method testMethod) Finds the source path of the test method, making the following assumptions: the test class' name is also the name of the source file, the file is at most 10 levels deep, the filename extension of the file isjava
,kt
, orgroovy
-
Method Details
-
findTestSourcePath
Finds the source path of the test method, making the following assumptions:- the test class' name is also the name of the source file,
- the file is at most 10 levels deep,
- the filename extension of the file is
java
,kt
, orgroovy
-