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

org.ehoffman.test.aspects.FileSystemAccessor Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package org.ehoffman.test.aspects;

import java.io.File;

/**
 * Used to access semi-temporary test folder.
 * @author rex
 */
public final class FileSystemAccessor {

    private static final ThreadLocal THREADLOCAL_FILE = new ThreadLocal<>();

    private FileSystemAccessor() {
    }

    static void setFile(final File file) {
        THREADLOCAL_FILE.set(file);
    }

    public static File getTestDir() {
        return THREADLOCAL_FILE.get();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy