Class GenericInferrer
- java.lang.Object
-
- io.testproject.sdk.internal.reporting.inferrers.GenericInferrer
-
- All Implemented Interfaces:
ReportSettingsInferrer
public class GenericInferrer extends java.lang.Object implements ReportSettingsInferrer
Generic inferrer for Project and Job names.
-
-
Field Summary
-
Fields inherited from interface io.testproject.sdk.internal.reporting.inferrers.ReportSettingsInferrer
LOG
-
-
Constructor Summary
Constructors Constructor Description GenericInferrer(java.util.List<java.lang.StackTraceElement> traces)
Initializes a new Generic inferrer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportSettings
inferReportSettings()
Returns Project and Job names using package and class names.java.lang.String
inferTestName()
Infers Test name using specific Unit Test framework logic.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.testproject.sdk.internal.reporting.inferrers.ReportSettingsInferrer
getUnnamedEntries
-
-
-
-
Method Detail
-
inferReportSettings
public ReportSettings inferReportSettings()
Returns Project and Job names using package and class names.Method uses the package name and the class names of the first entry in stack, for Project and Job names accordingly.
- Specified by:
inferReportSettings
in interfaceReportSettingsInferrer
- Returns:
- An instance of
ReportSettings
containing Project and Job names.
-
inferTestName
public java.lang.String inferTestName()
Infers Test name using specific Unit Test framework logic.- Specified by:
inferTestName
in interfaceReportSettingsInferrer
- Returns:
- A name of the Test.
-
-