Search in sources :

Example 1 with FileSystem

use of limelight.io.FileSystem in project limelight by slagyr.

the class TestRunner method loadClassNames.

private static String[] loadClassNames() {
    final FileSystem fs = new FileSystem();
    if (!fs.exists(".testClasses"))
        throw new RuntimeException(".testClasses file is missing");
    final String classesContent = fs.readTextFile(".testClasses");
    return classesContent.split("(\r\n|\n)");
}
Also used : FileSystem(limelight.io.FileSystem)

Example 2 with FileSystem

use of limelight.io.FileSystem in project limelight by slagyr.

the class BootTest method configuringFileSystem.

@Test
public void configuringFileSystem() throws Exception {
    FileSystem fs = new FakeFileSystem();
    Boot.configureContext(Boot.defaultOptions.merge("file-system", fs), context);
    assertSame(fs, Context.fs());
}
Also used : FakeFileSystem(limelight.io.FakeFileSystem) FakeFileSystem(limelight.io.FakeFileSystem) FileSystem(limelight.io.FileSystem)

Aggregations

FileSystem (limelight.io.FileSystem)2 FakeFileSystem (limelight.io.FakeFileSystem)1