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 ReportSettingsinferReportSettings()Returns Project and Job names using package and class names.java.lang.StringinferTestName()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
getPackageName, 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:
inferReportSettingsin interfaceReportSettingsInferrer- Returns:
- An instance of
ReportSettingscontaining Project and Job names.
-
inferTestName
public java.lang.String inferTestName()
Infers Test name using specific Unit Test framework logic.- Specified by:
inferTestNamein interfaceReportSettingsInferrer- Returns:
- A name of the Test.
-
-