ApprovalTests.Java icon indicating copy to clipboard operation
ApprovalTests.Java copied to clipboard

asOsSpecificTest

Open LarsEckart opened this issue 3 years ago • 0 comments

    public static Options asOsSpecificTest() {
        Options options = new Options();
        ApprovalNamer namer = options.forFile().getNamer();
        File approvedFile = namer.getApprovedFile("");
        String baseName = approvedFile.getName().substring(0, approvedFile.getName().length() - ".approved".length());
        String fileBaseName = baseName + "." + new OsEnvironmentLabeller().call();
        return options.forFile().withBaseName(fileBaseName);
    }

LarsEckart avatar Jul 21 '22 05:07 LarsEckart