com.lazerycode.selenium.repository.DriverDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-binary-downloader-maven-plugin Show documentation
Show all versions of driver-binary-downloader-maven-plugin Show documentation
A plugin to automatically download individual selenium standalone binaries (e.g. chromedriver.exe) for your mavenised selenium project.
package com.lazerycode.selenium.repository;
import com.lazerycode.selenium.hash.HashType;
import com.lazerycode.selenium.hash.HashTypeAdaptor;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.net.URL;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class DriverDetails {
@XmlElement(name = "filelocation")
public URL fileLocation;
@XmlElement()
public String hash;
@XmlElement(name = "hashtype")
@XmlJavaTypeAdapter(HashTypeAdaptor.class)
public HashType hashType;
public String extractedLocation;
@Override
public int hashCode() {
int result = fileLocation != null ? fileLocation.hashCode() : 0;
result = 31 * result + (hash != null ? hash.hashCode() : 0);
result = 31 * result + (hashType != null ? hashType.hashCode() : 0);
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy