ru.yandex.qatools.allure.model.Status Maven / Gradle / Ivy
The newest version!
package ru.yandex.qatools.allure.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for status.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="status">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="failed"/>
* <enumeration value="broken"/>
* <enumeration value="passed"/>
* <enumeration value="skipped"/>
* <enumeration value="canceled"/>
* <enumeration value="pending"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "status")
@XmlEnum
public enum Status {
@XmlEnumValue("failed")
FAILED("failed"),
@XmlEnumValue("broken")
BROKEN("broken"),
@XmlEnumValue("passed")
PASSED("passed"),
/**
* This is Deprecated. Use canceled status instead.
*
*/
@XmlEnumValue("skipped")
SKIPPED("skipped"),
@XmlEnumValue("canceled")
CANCELED("canceled"),
@XmlEnumValue("pending")
PENDING("pending");
private final String value;
Status(String v) {
value = v;
}
public String value() {
return value;
}
public static Status fromValue(String v) {
for (Status c: Status.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy