Search in sources :

Example 31 with FakePropProxy

use of limelight.model.api.FakePropProxy in project limelight by slagyr.

the class ScenePanelTest method unindexingAProp.

@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"));
}
Also used : FakePropProxy(limelight.model.api.FakePropProxy) Test(org.junit.Test)

Example 32 with FakePropProxy

use of limelight.model.api.FakePropProxy in project limelight by slagyr.

the class ParentPanelTest method addPropPanel.

void addPropPanel() {
    FakePropProxy prop = new FakePropProxy();
    PropPanel propPanel = new PropPanel(prop);
    propPanel.add(panel);
}
Also used : FakePropProxy(limelight.model.api.FakePropProxy)

Example 33 with FakePropProxy

use of limelight.model.api.FakePropProxy in project limelight by slagyr.

the class CheckBoxTest method setUp.

@Before
public void setUp() throws Exception {
    checkBox = new CheckBox();
    propPanel = new PropPanel(new FakePropProxy());
    new FakeScene().add(propPanel);
    checkBox.install(new CastEvent(propPanel));
}
Also used : PropPanel(limelight.ui.model.PropPanel) CastEvent(limelight.ui.events.panel.CastEvent) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 34 with FakePropProxy

use of limelight.model.api.FakePropProxy in project limelight by slagyr.

the class DropDownTest method setUp.

@Before
public void setUp() throws Exception {
    dropDown = new DropDown();
    propPanel = new PropPanel(new FakePropProxy());
    new FakeScene().add(propPanel);
    dropDown.install(new CastEvent(propPanel));
}
Also used : PropPanel(limelight.ui.model.PropPanel) CastEvent(limelight.ui.events.panel.CastEvent) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 35 with FakePropProxy

use of limelight.model.api.FakePropProxy in project limelight by slagyr.

the class FormTest method setUp.

@Before
public void setUp() throws Exception {
    form = new Form();
    propPanel = new PropPanel(new FakePropProxy());
    new FakeScene().add(propPanel);
    form.install(new CastEvent(propPanel));
}
Also used : PropPanel(limelight.ui.model.PropPanel) CastEvent(limelight.ui.events.panel.CastEvent) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Aggregations

FakePropProxy (limelight.model.api.FakePropProxy)37 PropPanel (limelight.ui.model.PropPanel)22 FakeScene (limelight.ui.model.FakeScene)17 Test (org.junit.Test)17 Before (org.junit.Before)15 CastEvent (limelight.ui.events.panel.CastEvent)7 MockGraphics (limelight.ui.MockGraphics)3 MockStage (limelight.ui.model.MockStage)3 LimelightException (limelight.LimelightException)2 FakeProduction (limelight.model.FakeProduction)2 RadioButtonGroup (limelight.ui.RadioButtonGroup)2 Scene (limelight.ui.model.Scene)2 FakeFileSystem (limelight.io.FakeFileSystem)1 FakePlayerRecruiter (limelight.model.api.FakePlayerRecruiter)1 MouseClickedEvent (limelight.ui.events.panel.MouseClickedEvent)1 MockDrawable (limelight.ui.model.MockDrawable)1 TextBoxPanel (limelight.ui.model.inputs.TextBoxPanel)1