All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cucumber.junit.JUnitOptionsBuilder Maven / Gradle / Ivy

There is a newer version: 7.20.1
Show 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy