org.hudsonci.rest.model.build
Class TestsDTO

java.lang.Object
  extended by org.hudsonci.rest.model.build.TestsDTO

public class TestsDTO
extends Object

Java class for tests complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="tests">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="total" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="failed" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="skipped" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="suite" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/build}testSuite" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  int failed
           
protected  int skipped
           
protected  List<TestSuiteDTO> suites
           
protected  int total
           
 
Constructor Summary
TestsDTO()
           
 
Method Summary
 boolean equals(Object obj)
           
 int getFailed()
          Gets the value of the failed property.
 int getSkipped()
          Gets the value of the skipped property.
 List<TestSuiteDTO> getSuites()
          Gets the value of the suites property.
 int getTotal()
          Gets the value of the total property.
 int hashCode()
           
 void setFailed(int value)
          Sets the value of the failed property.
 void setSkipped(int value)
          Sets the value of the skipped property.
 void setTotal(int value)
          Sets the value of the total property.
 TestsDTO withFailed(int value)
           
 TestsDTO withSkipped(int value)
           
 TestsDTO withSuites(Collection<TestSuiteDTO> values)
           
 TestsDTO withSuites(TestSuiteDTO... values)
           
 TestsDTO withTotal(int value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

total

protected int total

failed

protected int failed

skipped

protected int skipped

suites

protected List<TestSuiteDTO> suites
Constructor Detail

TestsDTO

public TestsDTO()
Method Detail

getTotal

public int getTotal()
Gets the value of the total property.


setTotal

public void setTotal(int value)
Sets the value of the total property.


getFailed

public int getFailed()
Gets the value of the failed property.


setFailed

public void setFailed(int value)
Sets the value of the failed property.


getSkipped

public int getSkipped()
Gets the value of the skipped property.


setSkipped

public void setSkipped(int value)
Sets the value of the skipped property.


getSuites

public List<TestSuiteDTO> getSuites()
Gets the value of the suites property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the suites property.

For example, to add a new item, do as follows:

    getSuites().add(newItem);
 

Objects of the following type(s) are allowed in the list TestSuiteDTO


withTotal

public TestsDTO withTotal(int value)

withFailed

public TestsDTO withFailed(int value)

withSkipped

public TestsDTO withSkipped(int value)

withSuites

public TestsDTO withSuites(TestSuiteDTO... values)

withSuites

public TestsDTO withSuites(Collection<TestSuiteDTO> values)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2011 Hudson. All Rights Reserved.