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());
}
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();
}
Aggregations