C
- Type of the child objects in this collection.S
- The derived type of TestCollection
(the same design pattern as you seen in Enum
)public abstract class TestCollection<S extends TestCollection<S,C>,C extends TestObject<C>> extends TestObject<S>
TestObject
that is a collection of other TestObject
s.Constructor and Description |
---|
TestCollection() |
Modifier and Type | Method and Description |
---|---|
void |
add(C t)
Adds a new child
TestObject to this. |
void |
doLog(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse res) |
C |
get(String id)
Gets a
Test by its id. |
Collection<C> |
getChildren() |
abstract String |
getChildTitle()
Returns the caption of the children.
|
C |
getDynamic(String name,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
int |
getFailCount() |
Collection<C> |
getFailedTests() |
String[] |
getPackages() |
Package |
getPackageTests(String packageName) |
int |
getSkippedCount() |
Collection<C> |
getSkippedTests() |
int |
getTotalCount() |
addAttribute, getAge, getDescription, getDisplayName, getFailedSince, getId, getName, getOwner, getPreviousResult, getStatus, getStatusMessage, setDescription, setId, setName, setStatusString
public Collection<C> getChildren()
public Collection<C> getFailedTests()
public Collection<C> getSkippedTests()
public int getTotalCount()
getTotalCount
in class TestObject<S extends TestCollection<S,C>>
public int getFailCount()
getFailCount
in class TestObject<S extends TestCollection<S,C>>
public int getSkippedCount()
getSkippedCount
in class TestObject<S extends TestCollection<S,C>>
public abstract String getChildTitle()
public void add(C t)
TestObject
to this.
For Digester.
public String[] getPackages()
public C getDynamic(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
public void doLog(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
Copyright © 2004-2015. All Rights Reserved.