Search in sources :

Example 1 with MockStageProxy

use of limelight.model.api.MockStageProxy in project limelight by slagyr.

the class StageEventTest method setUp.

@Before
public void setUp() throws Exception {
    assumeTrue(TestUtil.notHeadless());
    Context.instance().frameManager = new MockFrameManager();
    stage = new FramedStage("default", new MockStageProxy());
}
Also used : MockStageProxy(limelight.model.api.MockStageProxy) FramedStage(limelight.ui.model.FramedStage) MockFrameManager(limelight.ui.model.MockFrameManager) Before(org.junit.Before)

Example 2 with MockStageProxy

use of limelight.model.api.MockStageProxy 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)

Aggregations

MockStageProxy (limelight.model.api.MockStageProxy)2 Before (org.junit.Before)2 MockOS (limelight.os.MockOS)1 limelight.ui (limelight.ui)1 FramedStage (limelight.ui.model.FramedStage)1 MockFrameManager (limelight.ui.model.MockFrameManager)1