use of limelight.os.MockOS in project limelight by slagyr.
the class StudioTest method setupWithFilesystem.
public void setupWithFilesystem() {
mockPacker = new MockPacker();
studio.setPacker(mockPacker);
Context.instance().os = new MockOS();
}
use of limelight.os.MockOS in project limelight by slagyr.
the class ContextTest method setUp.
public void setUp() throws Exception {
Context.removeInstance();
Context.instance().environment = "test";
frameManager = new MockFrameManager();
studio = new MockStudio();
context = Context.instance();
context.studio = studio;
context.frameManager = frameManager;
context.os = new MockOS();
}
use of limelight.os.MockOS in project limelight by slagyr.
the class FramedStageTest method setUp.
@Before
public void setUp() throws Exception {
assumeTrue(TestUtil.notHeadless());
RealStyleAttributeCompilerFactory.install();
frameManager = new InertFrameManager();
Context.instance().frameManager = frameManager;
Context.instance().keyboardFocusManager = new limelight.ui.KeyboardFocusManager();
stageProxy = new MockStageProxy();
stage = new FramedStage("default", stageProxy);
frame = stage.getFrame();
graphicsDevice = new MockGraphicsDevice();
frame.setGraphicsDevice(graphicsDevice);
insets = new Insets(0, 0, 0, 0);
frame.setScreenInsets(insets);
Context.instance().os = new MockOS();
}
use of limelight.os.MockOS in project limelight by slagyr.
the class StageFrameTest method setUp.
@Before
public void setUp() throws Exception {
StageFrame.hiddenMode = false;
assumeTrue(TestUtil.notHeadless());
stage = new MockStage();
frame = new StageFrame(stage);
graphicsDevice = new MockGraphicsDevice();
frame.setGraphicsDevice(graphicsDevice);
os = new MockOS();
Context.instance().os = os;
}
use of limelight.os.MockOS in project limelight by slagyr.
the class BootTest method settingSystemCofiguration.
@Test
public void settingSystemCofiguration() throws Exception {
System.setProperty("limelight.home", "/limelighthome");
MockOS os = new MockOS();
Context.instance().os = os;
Boot.configureSystemProperties(context);
assertEquals(true, os.systemPropertiesConfigured);
assertEquals("true", System.getProperty("jruby.interfaces.useProxy"));
}
Aggregations