Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
ru.yandex.qatools.allure.events.AbstractTestCaseStartedEvent Maven / Gradle / Ivy
package ru.yandex.qatools.allure.events;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import ru.yandex.qatools.allure.model.Description;
import ru.yandex.qatools.allure.model.Label;
/**
* Java class for abstract-test-case-started-event complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="abstract-test-case-started-event">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="suiteUid" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="description" type="{urn:events.allure.qatools.yandex.ru}description"/>
* <element name="labels" type="{urn:events.allure.qatools.yandex.ru}labels" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "abstract-test-case-started-event", propOrder = {
})
public abstract class AbstractTestCaseStartedEvent implements Equals, HashCode, TestCaseEvent
{
@XmlElement(required = true)
protected String suiteUid;
@XmlElement(required = true)
protected String name;
@XmlElement(required = true, nillable = true)
protected String title;
@XmlElement(required = true, nillable = true)
protected Description description;
@XmlElementWrapper(name = "labels")
@XmlElement(name = "label")
protected List labels;
/**
* Gets the value of the suiteUid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSuiteUid() {
return suiteUid;
}
/**
* Sets the value of the suiteUid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSuiteUid(String value) {
this.suiteUid = 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 title property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(String value) {
this.title = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link Description }
*
*/
public Description getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link Description }
*
*/
public void setDescription(Description value) {
this.description = value;
}
public List getLabels() {
if (labels == null) {
labels = new ArrayList();
}
return labels;
}
public void setLabels(List labels) {
this.labels = labels;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof AbstractTestCaseStartedEvent)) {
return false;
}
if (this == object) {
return true;
}
final AbstractTestCaseStartedEvent that = ((AbstractTestCaseStartedEvent) object);
{
String lhsSuiteUid;
lhsSuiteUid = this.getSuiteUid();
String rhsSuiteUid;
rhsSuiteUid = that.getSuiteUid();
if (!strategy.equals(LocatorUtils.property(thisLocator, "suiteUid", lhsSuiteUid), LocatorUtils.property(thatLocator, "suiteUid", rhsSuiteUid), lhsSuiteUid, rhsSuiteUid)) {
return false;
}
}
{
String lhsName;
lhsName = this.getName();
String rhsName;
rhsName = that.getName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) {
return false;
}
}
{
String lhsTitle;
lhsTitle = this.getTitle();
String rhsTitle;
rhsTitle = that.getTitle();
if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle)) {
return false;
}
}
{
Description lhsDescription;
lhsDescription = this.getDescription();
Description rhsDescription;
rhsDescription = that.getDescription();
if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription)) {
return false;
}
}
{
List lhsLabels;
lhsLabels = this.getLabels();
List rhsLabels;
rhsLabels = that.getLabels();
if (!strategy.equals(LocatorUtils.property(thisLocator, "labels", lhsLabels), LocatorUtils.property(thatLocator, "labels", rhsLabels), lhsLabels, rhsLabels)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theSuiteUid;
theSuiteUid = this.getSuiteUid();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "suiteUid", theSuiteUid), currentHashCode, theSuiteUid);
}
{
String theName;
theName = this.getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName);
}
{
String theTitle;
theTitle = this.getTitle();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle);
}
{
Description theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription);
}
{
List theLabels;
theLabels = this.getLabels();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "labels", theLabels), currentHashCode, theLabels);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}