public class DefaultTestCase extends Object implements LambdaTestCase
| Constructor and Description |
|---|
DefaultTestCase(Section section,
String name,
String suiteName,
RunnableWithException test) |
DefaultTestCase(String name,
String suiteName,
RunnableWithException test) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The name of the test case.
|
Optional<Section> |
getSection()
The optional section, this test case belongs to.
|
String |
getSectionAndTestName() |
String |
getSuiteName()
The name of the test suite, e.g. the class name.
|
RunnableWithException |
getTest() |
String |
toString()
Return the test name.
|
public DefaultTestCase(Section section, String name, String suiteName, RunnableWithException test)
public DefaultTestCase(String name, String suiteName, RunnableWithException test)
public String toString()
Return the test name. Thus, when the test parameter of the generic test method is shown in the TestNG report, the user sees the actual test case name.
public Optional<Section> getSection()
LambdaTestCaseThe optional section, this test case belongs to.
getSection in interface LambdaTestCasepublic String getName()
LambdaTestCaseThe name of the test case. This is most often also the description.
getName in interface LambdaTestCasepublic String getSectionAndTestName()
public RunnableWithException getTest()
public String getSuiteName()
LambdaTestCaseThe name of the test suite, e.g. the class name.
getSuiteName in interface LambdaTestCaseCopyright © 2019. All rights reserved.