Search in sources :

Example 1 with PathFactory

use of com.google.devtools.build.lib.vfs.Path.PathFactory in project bazel by bazelbuild.

the class PathWindowsTest method initializeFileSystem.

@Before
public final void initializeFileSystem() throws Exception {
    filesystem = new InMemoryFileSystem(BlazeClock.instance()) {

        @Override
        protected PathFactory getPathFactory() {
            return WindowsFileSystem.getPathFactoryForTesting(shortPathResolver);
        }

        @Override
        public boolean isFilePathCaseSensitive() {
            return false;
        }
    };
    root = (WindowsPath) filesystem.getRootDirectory().getRelative("C:/");
    root.createDirectory();
}
Also used : InMemoryFileSystem(com.google.devtools.build.lib.vfs.inmemoryfs.InMemoryFileSystem) PathFactory(com.google.devtools.build.lib.vfs.Path.PathFactory) Before(org.junit.Before)

Aggregations

PathFactory (com.google.devtools.build.lib.vfs.Path.PathFactory)1 InMemoryFileSystem (com.google.devtools.build.lib.vfs.inmemoryfs.InMemoryFileSystem)1 Before (org.junit.Before)1