Examples of FakePropProxy


Examples of limelight.model.api.FakePropProxy

  @Before
  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);
View Full Code Here

Examples of limelight.model.api.FakePropProxy

  @Before
  public void setUp() throws Exception
  {
    frame = new MockStage();
    root = new ScenePanel(new FakePropProxy(), new FakePlayerRecruiter());
    child = new MockProp("child");
    limelight.ui.KeyboardFocusManager.installed();
    FakeFileSystem.installed();
  }
View Full Code Here

Examples of limelight.model.api.FakePropProxy

  @Test
  public void propWithIdIsIndexWhenAddedToScene() throws Exception
  {
    setupIlluminatedScene();
    PropPanel panel = new PropPanel(new FakePropProxy(), Util.toMap("id", "some id"));

    root.add(panel);

    assertSame(panel, root.find("some id"));
  }
View Full Code Here

Examples of limelight.model.api.FakePropProxy

  @Test
  public void propConnectedToSceneIsIndexedWhenIdIsSet() throws Exception
  {
    setupIlluminatedScene();
    PropPanel panel = new PropPanel(new FakePropProxy(), Util.toMap("id", "some id"));
    root.add(panel);

    assertSame(panel, root.find("some id"));
  }
View Full Code Here

Examples of limelight.model.api.FakePropProxy

  @Test
  public void duplicateIdsCausesAnError() throws Exception
  {
    setupIlluminatedScene();
    PropPanel prop1 = new PropPanel(new FakePropProxy(), Util.toMap("id", "some id"));
    PropPanel prop2 = new PropPanel(new FakePropProxy(), Util.toMap("id", "some id"));

    root.add(prop1);

    try
    {
View Full Code Here

Examples of limelight.model.api.FakePropProxy

  @Test
  public void unindexingAProp() throws Exception
  {
    setupIlluminatedScene();
    PropPanel prop = new PropPanel(new FakePropProxy(), Util.toMap("id", "some id"));
    root.add(prop);

    root.removeFromCaches(prop);

    assertEquals(null, root.find("some id"));
View Full Code Here

Examples of limelight.model.api.FakePropProxy

  @Test
  public void unindexingPropWithoutIdDoesntCrash() throws Exception
  {
    setupIlluminatedScene();
    PropPanel prop = new PropPanel(new FakePropProxy());
    root.add(prop);

    try
    {
      root.removeFromCaches(prop);
View Full Code Here

Examples of limelight.model.api.FakePropProxy

  @Test
  public void propTreesAreIndexedWhenAddedAndUnindexedWhenRemoved() throws Exception
  {
    setupIlluminatedScene();
    PropPanel parent = new PropPanel(new FakePropProxy(), Util.toMap("id", "parent"));
    PropPanel child = new PropPanel(new FakePropProxy(), Util.toMap("id", "child"));
    parent.add(child);

    root.add(parent);
    assertSame(parent, root.find("parent"));
    assertSame(child, root.find("child"));
View Full Code Here

Examples of limelight.model.api.FakePropProxy

  public void sceneGetLoaderFromOptions() throws Exception
  {
    root.setProduction(new FakeProduction("test_prod"));
    assertEquals("test_prod", root.getPath());

    root = new ScenePanel(new FakePropProxy(), new FakePlayerRecruiter());
    root.setProduction(new FakeProduction("/test_prod"));
    root.addOptions(Util.toMap("path", "some/path"));
    assertEquals("/test_prod/some/path", root.getPath());
  }
View Full Code Here

Examples of limelight.model.api.FakePropProxy

  }

  @Test
  public void propRemovalCleansBackstage() throws Exception
  {
    PropPanel panel = new PropPanel(new FakePropProxy(), Util.toMap("id", "some id"));
    root.add(panel);
    root.getBackstage(panel);
    assertEquals(1, root.backstage_PRIVATE().size());

    root.removeFromCaches(panel);
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.