use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class TextBoxPanelTest method setsPainterOnParent.
@Test
public void setsPainterOnParent() throws Exception {
PropPanel newParent = new PropPanel(new FakePropProxy());
panel.setParent(newParent);
assertEquals(TextInputPanel.TextInputPropPainter.instance, newParent.getPainter());
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class InputPanelUtilTest method setUp.
public void setUp() throws Exception {
input = new TestableInputPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(input);
KeyboardFocusManager.installed();
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class RadioButtonPanelTest method setUp.
@Before
public void setUp() throws Exception {
panel = new RadioButtonPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(panel);
root = new FakeScene();
root.add(parent);
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class ScenePanelTest method propConnectedToSceneIsIndexedWhenIdIsSet.
@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"));
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class ScenePanelTest method duplicateIdsCausesAnError.
@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 {
root.add(prop2);
fail("Should have raised error");
} catch (LimelightException e) {
assertEquals("Duplicate id: some id", e.getMessage());
}
}
Aggregations