Search in sources :

Example 1 with FakeProduction

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

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

Example 3 with FakeProduction

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());
}
Also used : PropPanel(limelight.ui.model.PropPanel) FakeProduction(limelight.model.FakeProduction) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

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

Example 5 with FakeProduction

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();
}
Also used : FakeProduction(limelight.model.FakeProduction) MockEventAction(limelight.ui.model.inputs.MockEventAction) Before(org.junit.Before)

Aggregations

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