use of limelight.model.FakeProduction 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.FakeProduction in project limelight by slagyr.
the class ScenePanelTest method shouldHasAnImageCache.
@Test
public void shouldHasAnImageCache() throws Exception {
FakeProduction production = new FakeProduction();
root.setProduction(production);
assertNotNull(root.getImageCache());
}
use of limelight.model.FakeProduction in project limelight by slagyr.
the class DropDownPanelTest method setUp.
@Before
public void setUp() throws Exception {
panel = new DropDownPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(panel);
root = new FakeScene();
root.add(parent);
root.styleStore = BuiltInStyles.all();
root.setProduction(new FakeProduction());
}
use of limelight.model.FakeProduction 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());
}
use of limelight.model.FakeProduction in project limelight by slagyr.
the class ProductionEventTest method setUp.
@Before
public void setUp() throws Exception {
production = new FakeProduction();
event = new TestableProductionEvent();
action = new MockEventAction();
}
Aggregations