com.browserstack.automate.testassist.RecordedData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of automate-testassist Show documentation
Show all versions of automate-testassist Show documentation
Library provides classes that Assist the Automate Build plugins to capture Selenium session id and test
case names.
package com.browserstack.automate.testassist;
/**
* Stores data that uniquely identifies each implementation.
*
* @author Shirish Kamath
* @author Anirudha Khanna
*/
public abstract class RecordedData {
final String data;
RecordedData(String data) {
this.data = data;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
RecordedData recordedData = (RecordedData) o;
return data != null ? data.equals(recordedData.data) : recordedData.data == null;
}
@Override
public int hashCode() {
return data != null ? data.hashCode() : 0;
}
}