Search in sources :

Example 1 with FakePlayerRecruiter

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

the class PropPanelTest method setUp.

@Before
public void setUp() throws Exception {
    root = new ScenePanel(new FakePropProxy(), new FakePlayerRecruiter());
    prop = new FakePropProxy();
    panel = new PropPanel(prop);
    root.add(panel);
    root.setProduction(new FakeProduction());
    root.setStage(new MockStage());
    style = panel.getStyle();
    CastingDirector.installed();
    FakeFileSystem.installed();
    Context.instance().bufferedImageCache = new SimpleCache<Panel, BufferedImage>();
}
Also used : Panel(limelight.ui.Panel) ScrollBarPanel(limelight.ui.model.inputs.ScrollBarPanel) FakePlayerRecruiter(limelight.model.api.FakePlayerRecruiter) FakeProduction(limelight.model.FakeProduction) BufferedImage(java.awt.image.BufferedImage) Before(org.junit.Before)

Example 2 with FakePlayerRecruiter

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

the class ScenePanelTest method sceneGetLoaderFromOptions.

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

Aggregations

FakeProduction (limelight.model.FakeProduction)2 FakePlayerRecruiter (limelight.model.api.FakePlayerRecruiter)2 BufferedImage (java.awt.image.BufferedImage)1 FakePropProxy (limelight.model.api.FakePropProxy)1 Panel (limelight.ui.Panel)1 ScrollBarPanel (limelight.ui.model.inputs.ScrollBarPanel)1 Before (org.junit.Before)1 Test (org.junit.Test)1