public class TestMethodSection extends SectionEvent<TestMethodSection,TestMethodReport,TestClassSection>
SectionEvent
that represents section for TestMethodReport
s within a TestClassReport
Constructor and Description |
---|
TestMethodSection()
Creates an instance of
TestMethodSection |
TestMethodSection(Method method)
Creates an instance of
TestMethodSection with an id created from given test method name. |
TestMethodSection(Method method,
String testSuiteId)
Creates an instance of
TestMethodSection with an id created from given test method name. |
TestMethodSection(TestMethodReport testMethodReport)
Creates an instance of
TestMethodSection with the given TestMethodReport |
TestMethodSection(TestMethodReport testMethodReport,
Method method)
Creates an instance of
TestMethodSection with the given TestMethodReport
and an id created from given test method name. |
TestMethodSection(TestMethodReport testMethodReport,
Method method,
String testSuiteId)
Creates an instance of
TestMethodSection with the given TestMethodReport
and an id created from given test method name. |
Modifier and Type | Method and Description |
---|---|
Method |
getMethod()
Returns a test method this
TestMethodSection relates to |
TestClassSection |
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<TestMethodReport> |
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 |
setMethod(Method method)
Sets a test method this
TestMethodSection relates to |
void |
setTestSuiteId(String testSuiteId)
Sets a test suite id of the
TestSuiteSection this section belongs to |
getReport, getSectionId, identifyYourself, isContainsSubReport, setContainsSubReport, setReport, setSectionId
public TestMethodSection()
TestMethodSection
public TestMethodSection(Method method)
TestMethodSection
with an id created from given test method name.method
- A test method this TestMethodSection
relates topublic TestMethodSection(Method method, String testSuiteId)
TestMethodSection
with an id created from given test method name.method
- A test method this TestMethodSection
relates totestSuiteId
- An id of a test suite the TestMethodReport
belongs to.public TestMethodSection(TestMethodReport testMethodReport)
TestMethodSection
with the given TestMethodReport
testMethodReport
- A TestMethodReport
that should be contained within this TestMethodSection
public TestMethodSection(TestMethodReport testMethodReport, Method method)
TestMethodSection
with the given TestMethodReport
and an id created from given test method name.testMethodReport
- A TestMethodReport
that should be contained within this TestMethodSection
method
- A test method this TestMethodSection
relates topublic TestMethodSection(TestMethodReport testMethodReport, Method method, String testSuiteId)
TestMethodSection
with the given TestMethodReport
and an id created from given test method name.
It also stores the given test suite id for identifying parental section.testMethodReport
- A TestMethodReport
that should be contained within this TestMethodSection
method
- A test method this TestMethodSection
relates totestSuiteId
- An id of a test suite the TestMethodReport
belongs to.public TestClassSection getParentSectionThisSectionBelongsTo()
SectionEvent
SectionEvent
implementation
that represents a parent section this section belongs togetParentSectionThisSectionBelongsTo
in class SectionEvent<TestMethodSection,TestMethodReport,TestClassSection>
SectionEvent
implementation that represents a parent section this section belongs topublic Class<TestMethodReport> getReportTypeClass()
SectionEvent
Report
class that is default payload of this SectionEvent
getReportTypeClass
in class SectionEvent<TestMethodSection,TestMethodReport,TestClassSection>
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 topublic Method getMethod()
TestMethodSection
relates toTestMethodSection
relates topublic void setMethod(Method method)
TestMethodSection
relates tomethod
- A test method this TestMethodSection
relates toCopyright © 2017 JBoss by Red Hat. All rights reserved.