io.cucumber.junit.JUnitOptionsBuilder Maven / Gradle / Ivy
The newest version!
package io.cucumber.junit;
final class JUnitOptionsBuilder {
private Boolean filenameCompatibleNames = null;
private Boolean stepNotifications = null;
JUnitOptions build() {
JUnitOptions jUnitOptions = new JUnitOptions();
return build(jUnitOptions);
}
JUnitOptions build(JUnitOptions jUnitOptions) {
if (filenameCompatibleNames != null) {
jUnitOptions.setFilenameCompatibleNames(filenameCompatibleNames);
}
if (stepNotifications != null) {
jUnitOptions.setStepNotifications(stepNotifications);
}
return jUnitOptions;
}
JUnitOptionsBuilder setFilenameCompatibleNames(boolean filenameCompatibleNames) {
this.filenameCompatibleNames = filenameCompatibleNames;
return this;
}
JUnitOptionsBuilder setStepNotifications(boolean stepNotifications) {
this.stepNotifications = stepNotifications;
return this;
}
}