public class TestMethodFailureSection extends SectionEvent<TestMethodFailureSection,FailureReport,TestMethodSection> implements Standalone
SectionEvent
that represents section for FailureReport
s within a TestMethodReport
Constructor and Description |
---|
TestMethodFailureSection()
Creates an instance of
TestMethodFailureSection |
TestMethodFailureSection(FailureReport failureReport)
Creates an instance of
TestMethodFailureSection with the given FailureReport |
TestMethodFailureSection(FailureReport failureReport,
String failureId)
Creates an instance of
TestMethodFailureSection with the given FailureReport
and an id represented by the given failureId |
TestMethodFailureSection(FailureReport failureReport,
String failureId,
Method testMethod)
Creates an instance of
TestMethodFailureSection with the given FailureReport
and an id represented by the given failureId
It also stores the given test method for identifying parental section. |
TestMethodFailureSection(FailureReport failureReport,
String failureId,
Method testMethod,
String testSuiteId)
Creates an instance of
TestMethodFailureSection with the given FailureReport
and an id represented by the given failureId
It also stores the given test method and test suite id for identifying parental section. |
TestMethodFailureSection(String failureId)
Creates an instance of
TestMethodFailureSection with the given id. |
TestMethodFailureSection(String failureId,
Method testMethod)
Creates an instance of
TestMethodFailureSection with the given id. |
TestMethodFailureSection(String failureId,
Method testMethod,
String testSuiteId)
Creates an instance of
TestMethodFailureSection with the given id. |
Modifier and Type | Method and Description |
---|---|
TestMethodSection |
getParentSectionThisSectionBelongsTo()
Based on information that are set, creates and returns an instance of
SectionEvent implementation
that represents a parent section this section belongs to |
Class<FailureReport> |
getReportTypeClass()
Returns a
Report class that is default payload of this SectionEvent |
String |
getTestSuiteId()
Returns a test suite id of the
TestSuiteSection this section belongs to |
void |
setTestSuiteId(String testSuiteId)
Sets a test suite id of the
TestSuiteSection this section belongs to |
static TestMethodFailureSection |
standalone()
Creates an instance of
TestMethodFailureSection . |
static TestMethodFailureSection |
standalone(FailureReport failureReport)
Creates an instance of
TestMethodFailureSection with the given FailureReport . |
static TestMethodFailureSection |
standalone(FailureReport failureReport,
Method testMethod)
Creates an instance of
TestMethodFailureSection with the given FailureReport . |
static TestMethodFailureSection |
standalone(FailureReport failureReport,
Method testMethod,
String testSuiteId)
Creates an instance of
TestMethodFailureSection with the given FailureReport . |
static TestMethodFailureSection |
standalone(Method testMethod)
Creates an instance of
TestMethodFailureSection with the given test method that is stored to identify a parental section. |
static TestMethodFailureSection |
standalone(Method testMethod,
String testSuiteId)
Creates an instance of
TestMethodFailureSection with the given test method and test suite id that are stored
to identify a parental section. |
getReport, getSectionId, identifyYourself, isContainsSubReport, setContainsSubReport, setReport, setSectionId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStandaloneId
public TestMethodFailureSection()
TestMethodFailureSection
public TestMethodFailureSection(String failureId)
TestMethodFailureSection
with the given id.failureId
- A failure id to be used to identify the TestMethodFailureSection
public TestMethodFailureSection(String failureId, Method testMethod)
TestMethodFailureSection
with the given id.
It also stores the given test method for identifying parental section.failureId
- A failure id to be used to identify the TestMethodFailureSection
testMethod
- A test method the FailureReport
belongs to.public TestMethodFailureSection(String failureId, Method testMethod, String testSuiteId)
TestMethodFailureSection
with the given id.
It also stores the given test method and test suite for identifying parental section.failureId
- A failure id to be used to identify the TestMethodFailureSection
testMethod
- A test method the FailureReport
belongs to.testSuiteId
- An id of a test suite the FailureReport
belongs to.public TestMethodFailureSection(FailureReport failureReport)
TestMethodFailureSection
with the given FailureReport
failureReport
- A FailureReport
that should be contained as the payload of this TestMethodFailureSection
public TestMethodFailureSection(FailureReport failureReport, String failureId)
TestMethodFailureSection
with the given FailureReport
and an id represented by the given failureIdfailureReport
- A FailureReport
that should be contained as the payload of this TestMethodFailureSection
failureId
- A failure id to be used to identify the TestMethodFailureSection
public TestMethodFailureSection(FailureReport failureReport, String failureId, Method testMethod)
TestMethodFailureSection
with the given FailureReport
and an id represented by the given failureId
It also stores the given test method for identifying parental section.failureReport
- A FailureReport
that should be contained as the payload of this TestMethodFailureSection
failureId
- A failure id to be used to identify the TestMethodFailureSection
testMethod
- A test method the FailureReport
belongs to.public TestMethodFailureSection(FailureReport failureReport, String failureId, Method testMethod, String testSuiteId)
TestMethodFailureSection
with the given FailureReport
and an id represented by the given failureId
It also stores the given test method and test suite id for identifying parental section.failureReport
- A FailureReport
that should be contained as the payload of this TestMethodFailureSection
failureId
- A failure id to be used to identify the TestMethodFailureSection
testMethod
- A test method the FailureReport
belongs to.testSuiteId
- An id of a test suite the FailureReport
belongs to.public static TestMethodFailureSection standalone()
TestMethodFailureSection
.
This section is treated as a standalone one which means that it won't be registered in the section tree and the report
won't be merged with any existing one, so it will be added in the list of failure reports no matter what type it is.
The given.public static TestMethodFailureSection standalone(Method testMethod)
TestMethodFailureSection
with the given test method that is stored to identify a parental section.
This section is treated as a standalone one which means that it won't be registered in the section tree and the report
won't be merged with any existing one, so it will be added in the list of failure reports no matter what type it is.
The given.testMethod
- A test method the FailureReport
belongs to.public static TestMethodFailureSection standalone(Method testMethod, String testSuiteId)
TestMethodFailureSection
with the given test method and test suite id that are stored
to identify a parental section.
This section is treated as a standalone one which means that it won't be registered in the section tree and the report
won't be merged with any existing one, so it will be added in the list of failure reports no matter what type it is.
The given .testMethod
- A test method the FailureReport
belongs to.testSuiteId
- An id of a test suite the FailureReport
belongs to.public static TestMethodFailureSection standalone(FailureReport failureReport)
TestMethodFailureSection
with the given FailureReport
.
This section is treated as a standalone one which means that it won't be registered in the section tree and the report
won't be merged with any existing one, so it will be added in the list of failure reports no matter what type it is.failureReport
- A FailureReport
that should be contained as the payload of this TestMethodFailureSection
public static TestMethodFailureSection standalone(FailureReport failureReport, Method testMethod)
TestMethodFailureSection
with the given FailureReport
.
This section is treated as a standalone one which means that it won't be registered in the section tree and the report
won't be merged with any existing one, so it will be added in the list of failure reports no matter what type it is.
The given test method is stored to identify a parental section.failureReport
- A FailureReport
that should be contained as the payload of this TestMethodFailureSection
testMethod
- A test method the FailureReport
belongs to.public static TestMethodFailureSection standalone(FailureReport failureReport, Method testMethod, String testSuiteId)
TestMethodFailureSection
with the given FailureReport
.
This section is treated as a standalone one which means that it won't be registered in the section tree and the report
won't be merged with any existing one, so it will be added in the list of failure reports no matter what type it is.
The given test method and test suite id are stored to identify a parental section.failureReport
- A FailureReport
that should be contained as the payload of this TestMethodFailureSection
testMethod
- A test method the FailureReport
belongs to.testSuiteId
- An id of a test suite the FailureReport
belongs to.public TestMethodSection getParentSectionThisSectionBelongsTo()
SectionEvent
SectionEvent
implementation
that represents a parent section this section belongs togetParentSectionThisSectionBelongsTo
in class SectionEvent<TestMethodFailureSection,FailureReport,TestMethodSection>
SectionEvent
implementation that represents a parent section this section belongs topublic Class<FailureReport> getReportTypeClass()
SectionEvent
Report
class that is default payload of this SectionEvent
getReportTypeClass
in class SectionEvent<TestMethodFailureSection,FailureReport,TestMethodSection>
Report
class that is default payload of this SectionEvent
public void setTestSuiteId(String testSuiteId)
TestSuiteSection
this section belongs totestSuiteId
- A test suite id of the TestSuiteSection
this section belongs topublic String getTestSuiteId()
TestSuiteSection
this section belongs toTestSuiteSection
this section belongs toCopyright © 2017 JBoss by Red Hat. All rights reserved.