use of limelight.model.api.MockStudio 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.model.api.MockStudio in project limelight by slagyr.
the class AlertFrameManagerTest method setUp.
@Before
public void setUp() throws Exception {
assumeTrue(TestUtil.notHeadless());
StageFrame.hiddenMode = false;
context = MockContext.stub();
manager = new AlertFrameManager(context);
context.frameManager = manager;
context.studio = new MockStudio();
context.environment = "test";
stage = new MockStage();
frame = new StageFrame(stage);
action = new MockEventAction();
}
use of limelight.model.api.MockStudio in project limelight by slagyr.
the class DarwinOSTest method testOpenProductionWhenNotRunningAsApp.
public void testOpenProductionWhenNotRunningAsApp() throws Exception {
LimelightApplicationAdapter.startupsReceived = 0;
System.setProperty("limelight.as.app", "false");
MockStudio studio = new MockStudio();
Context.instance().studio = studio;
os.openProduction("blah");
assertEquals("blah", studio.openedProduction);
assertEquals(0, LimelightApplicationAdapter.startupsReceived);
}
use of limelight.model.api.MockStudio in project limelight by slagyr.
the class DarwinOSTest method testOpenProductionWhenRunningAsApp.
public void testOpenProductionWhenRunningAsApp() throws Exception {
LimelightApplicationAdapter.startupsReceived = 0;
System.setProperty("limelight.as.app", "true");
MockStudio studio = new MockStudio();
Context.instance().studio = studio;
os.openProduction("blah");
assertEquals("blah", studio.openedProduction);
assertEquals(1, LimelightApplicationAdapter.startupsReceived);
}
use of limelight.model.api.MockStudio in project limelight by slagyr.
the class Win32OSTest method testOpenProduction.
public void testOpenProduction() throws Exception {
MockStudio studio = new MockStudio();
Context.instance().studio = studio;
os.openProduction("blah");
assertEquals("blah", studio.openedProduction);
}
Aggregations