Search in sources :

Example 1 with FactoryGraphicMock

use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.

the class SetupTest method setUp.

/**
 * Prepare test.
 */
@BeforeClass
public static void setUp() {
    Medias.setLoadFromJar(SetupTest.class);
    Graphics.setFactoryGraphic(new FactoryGraphicMock());
}
Also used : FactoryGraphicMock(com.b3dgs.lionengine.graphic.FactoryGraphicMock) BeforeClass(org.junit.BeforeClass)

Example 2 with FactoryGraphicMock

use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.

the class WorldTest method setUp.

/**
 * Prepare test.
 */
@BeforeClass
public static void setUp() {
    Medias.setLoadFromJar(WorldTest.class);
    Graphics.setFactoryGraphic(new FactoryGraphicMock());
}
Also used : FactoryGraphicMock(com.b3dgs.lionengine.graphic.FactoryGraphicMock) BeforeClass(org.junit.BeforeClass)

Example 3 with FactoryGraphicMock

use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.

the class CollidableModelTest method setUp.

/**
 * Prepare test.
 */
@BeforeClass
public static void setUp() {
    Graphics.setFactoryGraphic(new FactoryGraphicMock());
    Medias.setResourcesDirectory(System.getProperty("java.io.tmpdir"));
    config = UtilSetup.createConfig();
}
Also used : FactoryGraphicMock(com.b3dgs.lionengine.graphic.FactoryGraphicMock) BeforeClass(org.junit.BeforeClass)

Example 4 with FactoryGraphicMock

use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.

the class ComponentCollisionTest method setUp.

/**
 * Prepare test.
 */
@BeforeClass
public static void setUp() {
    Graphics.setFactoryGraphic(new FactoryGraphicMock());
    Medias.setResourcesDirectory(System.getProperty("java.io.tmpdir"));
    config = UtilSetup.createConfig();
}
Also used : FactoryGraphicMock(com.b3dgs.lionengine.graphic.FactoryGraphicMock) BeforeClass(org.junit.BeforeClass)

Example 5 with FactoryGraphicMock

use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.

the class SpriteTiledTest method setUp.

/**
 * Prepare test.
 */
@BeforeClass
public static void setUp() {
    Graphics.setFactoryGraphic(new FactoryGraphicMock());
    Medias.setLoadFromJar(SpriteTiledTest.class);
    media = Medias.create("image.png");
}
Also used : FactoryGraphicMock(com.b3dgs.lionengine.graphic.FactoryGraphicMock) BeforeClass(org.junit.BeforeClass)

Aggregations

FactoryGraphicMock (com.b3dgs.lionengine.graphic.FactoryGraphicMock)25 BeforeClass (org.junit.BeforeClass)24 Config (com.b3dgs.lionengine.Config)1 Screen (com.b3dgs.lionengine.graphic.Screen)1 Semaphore (java.util.concurrent.Semaphore)1 AtomicReference (java.util.concurrent.atomic.AtomicReference)1 Test (org.junit.Test)1