use of limelight.io.FakeFileSystem in project limelight by slagyr.
the class CreateCommandTest method setUp.
@Before
public void setUp() throws Exception {
System.setProperty("limelight.home", "home");
Context.removeInstance();
output = new ByteArrayOutputStream();
Command.setOutput(new PrintStream(output));
fs = new FakeFileSystem();
command = new CreateCommand();
command.setTemplaterLoger(new NullTemplaterLogger());
Context.instance().fs = fs;
}
use of limelight.io.FakeFileSystem 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());
}
use of limelight.io.FakeFileSystem in project limelight by slagyr.
the class JavaPlayerTest method setUp.
@Before
public void setUp() throws Exception {
FakeFileSystem fs = FakeFileSystem.installed();
JavaProductionTest.writeSamplePlayerTo(fs.outputStream("/testProduction/classes/SamplePlayer.class"));
samplePlayerClass = new PlayerClassLoader("/testProduction/classes").loadClass("SamplePlayer");
prop = new PropPanel(new FakePropProxy());
new FakeScene().add(prop);
}
Aggregations