com.version1.testdata.BankHoliday Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-java-test-automation Show documentation
Show all versions of selenium-java-test-automation Show documentation
A simple Selenium framework offering externalised configuration, a good selection of libraries for supporting
test data, simple WebDriver browser binary resolution and an opinionated approach for WebDriver test design.
package com.version1.testdata;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.joda.time.LocalDate;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
@JsonIgnoreProperties(ignoreUnknown = true)
public class BankHoliday {
private String title;
private LocalDate localDate;
public String getTitle() {
return title;
}
@JsonProperty("title")
public void setTitle(String title) {
this.title = title;
}
public String getLocalDate(String dateFormat) {
DateTimeFormatter dateTimeFormatter = DateTimeFormat.forPattern(dateFormat);
return this.localDate.toString(dateTimeFormatter);
}
public LocalDate getLocalDate() {
return this.localDate;
}
@JsonProperty("date")
public void setLocalDate(String localDate) {
this.localDate = LocalDate.parse(localDate);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy