Examples of MockStage


Examples of limelight.ui.model.MockStage

  public void setUp() throws Exception
  {
    FakeScene root = new FakeScene();
    parent = new PropPanel(new FakePropProxy());
    root.add(parent);
    stage = new MockStage();
    root.setStage(stage);
    panel = new TextBoxPanel();
    parent.add(panel);
    graphics = new MockGraphics();
View Full Code Here

Examples of limelight.ui.model.MockStage

      panel = new TextBoxPanel();

    panel.setSize(150, 75);
    root = new FakeScene();
    root.add(panel);
    stage = new MockStage();
    root.setStage(stage);

    model = panel.getModel();

    model.setTypedLayoutFactory(MockTypedLayoutFactory.instance);
View Full Code Here

Examples of limelight.ui.model.MockStage

  }

  @Test
  public void acquiresFocusWhenPressed() throws Exception
  {
    final MockStage stage = new MockStage();
    root.setStage(stage);

    panel.setChoicesVargs(1, 2, 3);
    new ButtonPushedEvent().dispatch(panel);
View Full Code Here

Examples of limelight.ui.model.MockStage

    parent = new PropPanel(new FakePropProxy());
    parent.add(panel);

    root = new FakeScene();
    root.add(parent);
    root.setStage(new MockStage());

    graphics = new MockGraphics();
    model = panel.getModel();
    model.setText("Some Text");
  }
View Full Code Here

Examples of limelight.ui.model.MockStage

    root = new FakeScene();
    panel = new MockTextInputPanel();
    parent = new PropPanel(new FakePropProxy());
    parent.add(panel);
    root.add(parent);
    stage = new MockStage();
    root.setStage(stage);
    model = panel.getModel();
    model.setText("Some Text");
  }
View Full Code Here

Examples of limelight.ui.model.MockStage

public class MockTheaterProxy implements TheaterProxy
{
  public Stage buildStage(String name, Map<String, Object> options)
  {
    return new MockStage(name);
  }
View Full Code Here

Examples of limelight.ui.model.MockStage

  @Test
  public void openSceneWithNoActiveStage() throws Exception
  {
    production.loadProduction();
    final MockStage stage = (MockStage)production.getTheater().getDefaultStage();
    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.openScene("scenePath", Util.toMap());

    assertEquals("scenePath", production.loadedScenePath);
    assertEquals(scene, stage.getScene());
    assertEquals(true, stage.opened);
  }
View Full Code Here

Examples of limelight.ui.model.MockStage

  @Test
  public void openSceneWithActiveStage() throws Exception
  {
    production.loadProduction();
    MockStage stage = new MockStage("active");
    production.getTheater().add(stage);
    new StageActivatedEvent().dispatch(stage);

    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.openScene("scenePath", Util.toMap());

    assertEquals("scenePath", production.loadedScenePath);
    assertEquals(scene, stage.getScene());
    assertEquals(true, stage.opened);
  }
View Full Code Here

Examples of limelight.ui.model.MockStage

  @Test
  public void openSceneWithStage() throws Exception
  {
    production.loadProduction();
    MockStage stage = new MockStage("mock");
    production.getTheater().add(stage);
    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.openScene("scenePath", "mock", Util.toMap());

    assertEquals("scenePath", production.loadedScenePath);
    assertEquals(scene, stage.getScene());
    assertEquals(true, stage.opened);
  }
View Full Code Here

Examples of limelight.ui.model.MockStage

  @Test
  public void openSceneUpdatesOptionsWithNameAndPath() throws Exception
  {
    production.loadProduction();
    production.getTheater().add(new MockStage("mock"));
    production.stubbedScene = new FakeScene();
    final Map<String,Object> options = Util.toMap();

    production.openScene("scenePath/sceneName", "mock", options);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.