
net.serenitybdd.screenplay.AnonymousPerformableFieldSetter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serenity-screenplay Show documentation
Show all versions of serenity-screenplay Show documentation
Support for the User Journey pattern in Serenity
The newest version!
package net.serenitybdd.screenplay;
public class AnonymousPerformableFieldSetter {
private final T anonymousPerformable;
private final String fieldName;
public AnonymousPerformableFieldSetter(T anonymousPerformable, String fieldName) {
this.anonymousPerformable = anonymousPerformable;
this.fieldName = fieldName;
}
public T of(Object fieldValue) {
anonymousPerformable.setFieldValue(fieldName, fieldValue);
return anonymousPerformable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy