Search in sources :

Example 1 with MockStudio

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

Example 2 with MockStudio

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();
}
Also used : MockStudio(limelight.model.api.MockStudio) MockEventAction(limelight.ui.model.inputs.MockEventAction) Before(org.junit.Before)

Example 3 with MockStudio

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);
}
Also used : MockStudio(limelight.model.api.MockStudio)

Example 4 with MockStudio

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);
}
Also used : MockStudio(limelight.model.api.MockStudio)

Example 5 with MockStudio

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);
}
Also used : MockStudio(limelight.model.api.MockStudio)

Aggregations

MockStudio (limelight.model.api.MockStudio)5 MockOS (limelight.os.MockOS)1 MockFrameManager (limelight.ui.model.MockFrameManager)1 MockEventAction (limelight.ui.model.inputs.MockEventAction)1 Before (org.junit.Before)1