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

net.serenitybdd.core.photography.AmendedPathBuilder Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.core.photography;

import java.nio.file.Path;

public class AmendedPathBuilder {
    private final ScreenshotNegative negative;

    public AmendedPathBuilder(ScreenshotNegative negative) {
        this.negative = negative;
    }

    public Path withPrefix(String prefix) {
        return negative.getScreenshotPath().getParent().resolve(prefix + negative.getScreenshotPath().getFileName().toString());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy