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>();
}
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());
}
Aggregations