use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class TextAreaPanelTest method setUp.
@Before
public void setUp() {
assumeTrue(TestUtil.notHeadless());
panel = new TextAreaPanel();
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");
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class TextBoxPanelTest method setUp.
@Before
public void setUp() {
assumeTrue(TestUtil.notHeadless());
panel = new TextBoxPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(panel);
graphics = new MockGraphics();
model = panel.getModel();
model.setText("Some Text");
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class ScenePanelTest method unindexingPropWithoutIdDoesntCrash.
@Test
public void unindexingPropWithoutIdDoesntCrash() throws Exception {
setupIlluminatedScene();
PropPanel prop = new PropPanel(new FakePropProxy());
root.add(prop);
try {
root.removeFromCaches(prop);
} catch (Exception e) {
fail("Should not throw error: " + e.toString());
}
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class TempTextAccessorTest method shouldReplaceItselfWithTextPanel.
@Test
public void shouldReplaceItselfWithTextPanel() throws Exception {
PropPanel panel = new PropPanel(new FakePropProxy());
assertEquals(TempTextAccessor.instance(), panel.getTextAccessor());
TempTextAccessor.instance().setText("Howdy", panel);
TextAccessor newAccessor = panel.getTextAccessor();
assertEquals(TextPanel.class, newAccessor.getClass());
assertEquals("Howdy", newAccessor.getText());
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class ScenePanelTest method propRemovalCleansBackstage.
@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);
assertEquals(0, root.backstage_PRIVATE().size());
}
Aggregations