Search in sources :

Example 1 with MockOS

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();
}
Also used : MockOS(limelight.os.MockOS)

Example 2 with 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();
}
Also used : MockOS(limelight.os.MockOS) MockStudio(limelight.model.api.MockStudio) MockFrameManager(limelight.ui.model.MockFrameManager)

Example 3 with 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();
}
Also used : MockStageProxy(limelight.model.api.MockStageProxy) MockOS(limelight.os.MockOS) limelight.ui(limelight.ui) Before(org.junit.Before)

Example 4 with 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;
}
Also used : MockOS(limelight.os.MockOS) Before(org.junit.Before)

Example 5 with MockOS

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"));
}
Also used : MockOS(limelight.os.MockOS)

Aggregations

MockOS (limelight.os.MockOS)6 Before (org.junit.Before)3 MockStageProxy (limelight.model.api.MockStageProxy)1 MockStudio (limelight.model.api.MockStudio)1 limelight.ui (limelight.ui)1 MockFrameManager (limelight.ui.model.MockFrameManager)1