io.qameta.allure.entity.Status Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-plugin-api Show documentation
Show all versions of allure-plugin-api Show documentation
Module allure-plugin-api of Allure Framework.
package io.qameta.allure.entity;
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="unknown"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "Status")
@XmlEnum
public enum Status {
@XmlEnumValue("failed")
FAILED("failed"),
@XmlEnumValue("broken")
BROKEN("broken"),
@XmlEnumValue("passed")
PASSED("passed"),
@XmlEnumValue("skipped")
SKIPPED("skipped"),
@XmlEnumValue("unknown")
UNKNOWN("unknown");
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