All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.capitalone.dashboard.model.quality.JunitXmlReport Maven / Gradle / Ivy

package com.capitalone.dashboard.model.quality;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * Contains the results of exexuting a testsuite
 * 

*

Java class for testsuite complex type. *

*

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

*

 * <complexType name="testsuite">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="properties">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="property" maxOccurs="unbounded" minOccurs="0">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <attribute name="name" use="required">
 *                             <simpleType>
 *                               <restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *                                 <minLength value="1"/>
 *                               </restriction>
 *                             </simpleType>
 *                           </attribute>
 *                           <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="testcase" maxOccurs="unbounded" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <choice minOccurs="0">
 *                   <element name="error">
 *                     <complexType>
 *                       <simpleContent>
 *                         <extension base="<>pre-string">
 *                           <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                           <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                         </extension>
 *                       </simpleContent>
 *                     </complexType>
 *                   </element>
 *                   <element name="failure">
 *                     <complexType>
 *                       <simpleContent>
 *                         <extension base="<>pre-string">
 *                           <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                           <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                         </extension>
 *                       </simpleContent>
 *                     </complexType>
 *                   </element>
 *                 </choice>
 *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}token" />
 *                 <attribute name="classname" use="required" type="{http://www.w3.org/2001/XMLSchema}token" />
 *                 <attribute name="time" use="required" type="{http://www.w3.org/2001/XMLSchema}decimal" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="system-out">
 *           <simpleType>
 *             <restriction base="{}pre-string">
 *               <whiteSpace value="preserve"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="system-err">
 *           <simpleType>
 *             <restriction base="{}pre-string">
 *               <whiteSpace value="preserve"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *       </sequence>
 *       <attribute name="name" use="required">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *             <minLength value="1"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="timestamp" use="required" type="{}ISO8601_DATETIME_PATTERN" />
 *       <attribute name="hostname" use="required">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *             <minLength value="1"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="tests" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="failures" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="errors" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="time" use="required" type="{http://www.w3.org/2001/XMLSchema}decimal" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "testsuite") public class JunitXmlReport implements QualityVisitee { @XmlElement(required = true) protected JunitXmlReport.Properties properties; protected List testcase; @XmlElement(name = "system-out", required = true) protected String systemOut; @XmlElement(name = "system-err", required = true) protected String systemErr; @XmlAttribute(name = "name", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String name; @XmlAttribute(name = "timestamp", required = true) protected XMLGregorianCalendar timestamp; @XmlAttribute(name = "hostname", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String hostname; @XmlAttribute(name = "tests", required = true) protected int tests; @XmlAttribute(name = "failures", required = true) protected int failures; @XmlAttribute(name = "errors", required = true) protected int errors; @XmlAttribute(name = "time", required = true) protected BigDecimal time; @XmlAttribute(name = "skipped") protected String skipped; @XmlAttribute(name = "skips") protected String skips; /** * Gets the value of the properties property. * * @return possible object is * {@link JunitXmlReport.Properties } */ public JunitXmlReport.Properties getProperties() { return properties; } /** * Sets the value of the properties property. * * @param value allowed object is * {@link JunitXmlReport.Properties } */ public void setProperties(JunitXmlReport.Properties value) { this.properties = value; } /** * Gets the value of the testcase 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 testcase property. *

*

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

     *    getTestcase().add(newItem);
     * 
*

*

*

* Objects of the following type(s) are allowed in the list * {@link JunitXmlReport.Testcase } */ public List getTestcase() { if (testcase == null) { testcase = new ArrayList(); } return this.testcase; } /** * Gets the value of the systemOut property. * * @return possible object is * {@link String } */ public String getSystemOut() { return systemOut; } /** * Sets the value of the systemOut property. * * @param value allowed object is * {@link String } */ public void setSystemOut(String value) { this.systemOut = value; } /** * Gets the value of the systemErr property. * * @return possible object is * {@link String } */ public String getSystemErr() { return systemErr; } /** * Sets the value of the systemErr property. * * @param value allowed object is * {@link String } */ public void setSystemErr(String value) { this.systemErr = value; } /** * Gets the value of the name property. * * @return possible object is * {@link String } */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value allowed object is * {@link String } */ public void setName(String value) { this.name = value; } /** * Gets the value of the timestamp property. * * @return possible object is * {@link XMLGregorianCalendar } */ public XMLGregorianCalendar getTimestamp() { return timestamp; } /** * Sets the value of the timestamp property. * * @param value allowed object is * {@link XMLGregorianCalendar } */ public void setTimestamp(XMLGregorianCalendar value) { this.timestamp = value; } /** * Gets the value of the hostname property. * * @return possible object is * {@link String } */ public String getHostname() { return hostname; } /** * Sets the value of the hostname property. * * @param value allowed object is * {@link String } */ public void setHostname(String value) { this.hostname = value; } /** * Gets the value of the tests property. */ public int getTests() { return tests; } /** * Sets the value of the tests property. */ public void setTests(int value) { this.tests = value; } /** * Gets the value of the failures property. */ public int getFailures() { return failures; } /** * Sets the value of the failures property. */ public void setFailures(int value) { this.failures = value; } /** * Gets the value of the errors property. */ public int getErrors() { return errors; } /** * Sets the value of the errors property. */ public void setErrors(int value) { this.errors = value; } /** * Gets the value of the time property. * * @return possible object is * {@link BigDecimal } */ public BigDecimal getTime() { return time; } /** * Sets the value of the time property. * * @param value allowed object is * {@link BigDecimal } */ public void setTime(BigDecimal value) { this.time = value; } public String getSkipped() { return skipped; } public void setSkipped(String skipped) { this.skipped = skipped; } public String getSkips() { return skips; } public void setSkips(String skips) { this.skips = skips; } @Override public void accept(QualityVisitor visitor) { visitor.visit(this); } /** *

Java class for anonymous complex type. *

*

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

*

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="property" maxOccurs="unbounded" minOccurs="0">
     *           <complexType>
     *             <complexContent>
     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 <attribute name="name" use="required">
     *                   <simpleType>
     *                     <restriction base="{http://www.w3.org/2001/XMLSchema}token">
     *                       <minLength value="1"/>
     *                     </restriction>
     *                   </simpleType>
     *                 </attribute>
     *                 <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *               </restriction>
     *             </complexContent>
     *           </complexType>
     *         </element>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = {"property"}) public static class Properties { protected List property; /** * Gets the value of the property 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 property property. *

*

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

         *    getProperty().add(newItem);
         * 
*

*

*

* Objects of the following type(s) are allowed in the list * {@link JunitXmlReport.Properties.Property } */ public List getProperty() { if (property == null) { property = new ArrayList(); } return this.property; } /** *

Java class for anonymous complex type. *

*

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

*

         * <complexType>
         *   <complexContent>
         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       <attribute name="name" use="required">
         *         <simpleType>
         *           <restriction base="{http://www.w3.org/2001/XMLSchema}token">
         *             <minLength value="1"/>
         *           </restriction>
         *         </simpleType>
         *       </attribute>
         *       <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         *     </restriction>
         *   </complexContent>
         * </complexType>
         * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Property { @XmlAttribute(name = "name", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String name; @XmlAttribute(name = "value", required = true) protected String value; /** * Gets the value of the name property. * * @return possible object is * {@link String } */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value allowed object is * {@link String } */ public void setName(String value) { this.name = value; } /** * Gets the value of the value property. * * @return possible object is * {@link String } */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value allowed object is * {@link String } */ public void setValue(String value) { this.value = value; } } } /** *

Java class for anonymous complex type. *

*

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

*

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <choice minOccurs="0">
     *         <element name="error">
     *           <complexType>
     *             <simpleContent>
     *               <extension base="<>pre-string">
     *                 <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
     *                 <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *               </extension>
     *             </simpleContent>
     *           </complexType>
     *         </element>
     *         <element name="failure">
     *           <complexType>
     *             <simpleContent>
     *               <extension base="<>pre-string">
     *                 <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
     *                 <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *               </extension>
     *             </simpleContent>
     *           </complexType>
     *         </element>
     *       </choice>
     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}token" />
     *       <attribute name="classname" use="required" type="{http://www.w3.org/2001/XMLSchema}token" />
     *       <attribute name="time" use="required" type="{http://www.w3.org/2001/XMLSchema}decimal" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = {"error", "failure"}) public static class Testcase { protected JunitXmlReport.Testcase.Error error; protected JunitXmlReport.Testcase.Failure failure; @XmlAttribute(name = "name", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String name; @XmlAttribute(name = "classname", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String classname; @XmlAttribute(name = "time", required = true) protected BigDecimal time; @XmlAttribute(name = "skipped", required = true) protected String skipped; /** * Gets the value of the error property. * * @return possible object is * {@link JunitXmlReport.Testcase.Error } */ public JunitXmlReport.Testcase.Error getError() { return error; } /** * Sets the value of the error property. * * @param value allowed object is * {@link JunitXmlReport.Testcase.Error } */ public void setError(JunitXmlReport.Testcase.Error value) { this.error = value; } /** * Gets the value of the failure property. * * @return possible object is * {@link JunitXmlReport.Testcase.Failure } */ public JunitXmlReport.Testcase.Failure getFailure() { return failure; } /** * Sets the value of the failure property. * * @param value allowed object is * {@link JunitXmlReport.Testcase.Failure } */ public void setFailure(JunitXmlReport.Testcase.Failure value) { this.failure = value; } /** * Gets the value of the name property. * * @return possible object is * {@link String } */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value allowed object is * {@link String } */ public void setName(String value) { this.name = value; } /** * Gets the value of the classname property. * * @return possible object is * {@link String } */ public String getClassname() { return classname; } /** * Sets the value of the classname property. * * @param value allowed object is * {@link String } */ public void setClassname(String value) { this.classname = value; } /** * Gets the value of the time property. * * @return possible object is * {@link BigDecimal } */ public BigDecimal getTime() { return time; } /** * Sets the value of the time property. * * @param value allowed object is * {@link BigDecimal } */ public void setTime(BigDecimal value) { this.time = value; } public String getSkipped() { return skipped; } public void setSkipped(String skipped) { this.skipped = skipped; } /** *

Java class for anonymous complex type. *

*

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

*

         * <complexType>
         *   <simpleContent>
         *     <extension base="<>pre-string">
         *       <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
         *       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         *     </extension>
         *   </simpleContent>
         * </complexType>
         * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = {"value"}) public static class Error { @XmlValue protected String value; @XmlAttribute(name = "message") protected String message; @XmlAttribute(name = "type", required = true) protected String type; /** * Gets the value of the value property. * * @return possible object is * {@link String } */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value allowed object is * {@link String } */ public void setValue(String value) { this.value = value; } /** * Gets the value of the message property. * * @return possible object is * {@link String } */ public String getMessage() { return message; } /** * Sets the value of the message property. * * @param value allowed object is * {@link String } */ public void setMessage(String value) { this.message = value; } /** * Gets the value of the type property. * * @return possible object is * {@link String } */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value allowed object is * {@link String } */ public void setType(String value) { this.type = value; } } /** *

Java class for anonymous complex type. *

*

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

*

         * <complexType>
         *   <simpleContent>
         *     <extension base="<>pre-string">
         *       <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
         *       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         *     </extension>
         *   </simpleContent>
         * </complexType>
         * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = {"value"}) public static class Failure { @XmlValue protected String value; @XmlAttribute(name = "message") protected String message; @XmlAttribute(name = "type", required = true) protected String type; /** * Gets the value of the value property. * * @return possible object is * {@link String } */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value allowed object is * {@link String } */ public void setValue(String value) { this.value = value; } /** * Gets the value of the message property. * * @return possible object is * {@link String } */ public String getMessage() { return message; } /** * Sets the value of the message property. * * @param value allowed object is * {@link String } */ public void setMessage(String value) { this.message = value; } /** * Gets the value of the type property. * * @return possible object is * {@link String } */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value allowed object is * {@link String } */ public void setType(String value) { this.type = value; } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy