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

io.github.ericdriggs.reportcard.xml.junit.Testcase Maven / Gradle / Ivy

There is a newer version: 0.1.19
Show newest version
package io.github.ericdriggs.reportcard.xml.junit;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.*;
import java.math.BigDecimal;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "testcase", propOrder = {
        "skipped",
        "error",
        "failure",
        "systemOut",
        "systemErr",
        "assertions"
})
@NoArgsConstructor
@AllArgsConstructor
@Builder(builderMethodName = "builderForTestcase")
@Data
public class Testcase {

    protected Skipped skipped;
    //potential bug: can be multiple error according to xsd -- have only seen single in the wild.
    protected Error error;
    //potential bug: can be multiple failure according to xsd -- have only seen single in the wild.
    protected Failure failure;

    @XmlElement(name = "system-out")
    protected String systemOut;

    @XmlElement(name = "system-err")
    protected String systemErr;

    @XmlElement(name = "assertions")
    protected String assertions;

    @XmlAttribute(name = "name", required = true)
    protected String name;


    @XmlAttribute(name = "time")
    protected BigDecimal time;

    @XmlAttribute(name = "classname")
    protected String classname;

    @XmlAttribute(name = "status")
    protected String status;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy