Search in sources :

Example 1 with FakePropProxy

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

the class ButtonTest method setUp.

@Before
public void setUp() throws Exception {
    button = new Button();
    propPanel = new PropPanel(new FakePropProxy());
    new FakeScene().add(propPanel);
    button.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 2 with FakePropProxy

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

the class ImageTest method setUp.

@Before
public void setUp() throws Exception {
    image = new Image();
    propPanel = new PropPanel(new FakePropProxy());
    new FakeScene().add(propPanel);
    image.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 3 with FakePropProxy

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

the class RadioButtonTest method setUp.

@Before
public void setUp() throws Exception {
    button = new RadioButton();
    propPanel = new PropPanel(new FakePropProxy());
    new FakeScene().add(propPanel);
    button.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 4 with FakePropProxy

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

the class AbstractButtonPanelTest method aButtonParentWillAlsoGetThePushEvent.

@Test
public void aButtonParentWillAlsoGetThePushEvent() throws Exception {
    PropPanel parent = new PropPanel(new FakePropProxy());
    parent.add(panel);
    parent.getEventHandler().add(ButtonPushedEvent.class, action);
    new MouseClickedEvent(0, null, 0).dispatch(panel);
    assertEquals(true, action.invoked);
    assertEquals(parent, action.recipient);
}
Also used : PropPanel(limelight.ui.model.PropPanel) MouseClickedEvent(limelight.ui.events.panel.MouseClickedEvent) FakePropProxy(limelight.model.api.FakePropProxy) Test(org.junit.Test)

Example 5 with FakePropProxy

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

the class ButtonPanelTest method setUp.

@Before
public void setUp() throws Exception {
    panel = new ButtonPanel();
    parent = new PropPanel(new FakePropProxy());
    parent.add(panel);
    root = new FakeScene();
    root.add(parent);
}
Also used : PropPanel(limelight.ui.model.PropPanel) 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