Search in sources :

Example 21 with FactoryGraphicMock

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

the class CloudsTest method beforeTests.

/**
 * Prepare tests.
 */
@BeforeAll
public static void beforeTests() {
    Graphics.setFactoryGraphic(new FactoryGraphicMock());
    Medias.setLoadFromJar(CloudsTest.class);
}
Also used : FactoryGraphicMock(com.b3dgs.lionengine.graphic.FactoryGraphicMock) BeforeAll(org.junit.jupiter.api.BeforeAll)

Example 22 with FactoryGraphicMock

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

the class RasterableModelTest method beforeAll.

/**
 * Start engine.
 */
@BeforeAll
static void beforeAll() {
    Engine.start(new EngineMock(RasterableModelTest.class.getSimpleName(), Version.DEFAULT));
    Medias.setLoadFromJar(RasterableModelTest.class);
    Graphics.setFactoryGraphic(new FactoryGraphicMock());
}
Also used : FactoryGraphicMock(com.b3dgs.lionengine.graphic.FactoryGraphicMock) EngineMock(com.b3dgs.lionengine.EngineMock) BeforeAll(org.junit.jupiter.api.BeforeAll)

Example 23 with FactoryGraphicMock

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

the class ComponentCollisionTest method beforeTests.

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

Example 24 with FactoryGraphicMock

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

the class HudTest method beforeTests.

/**
 * Prepare test.
 */
@BeforeAll
public static void beforeTests() {
    Medias.setLoadFromJar(HudTest.class);
    Graphics.setFactoryGraphic(new FactoryGraphicMock());
    config = Medias.create("Object.xml");
}
Also used : FactoryGraphicMock(com.b3dgs.lionengine.graphic.FactoryGraphicMock) BeforeAll(org.junit.jupiter.api.BeforeAll)

Example 25 with FactoryGraphicMock

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

the class WorldTest method beforeAll.

/**
 * Start engine.
 */
@BeforeAll
static void beforeAll() {
    Engine.start(new EngineMock(WorldTest.class.getSimpleName(), Version.DEFAULT));
    Medias.setLoadFromJar(WorldTest.class);
    Graphics.setFactoryGraphic(new FactoryGraphicMock());
}
Also used : FactoryGraphicMock(com.b3dgs.lionengine.graphic.FactoryGraphicMock) EngineMock(com.b3dgs.lionengine.EngineMock) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

FactoryGraphicMock (com.b3dgs.lionengine.graphic.FactoryGraphicMock)61 BeforeAll (org.junit.jupiter.api.BeforeAll)35 BeforeClass (org.junit.BeforeClass)24 EngineMock (com.b3dgs.lionengine.EngineMock)11 FactoryMediaDefault (com.b3dgs.lionengine.FactoryMediaDefault)3 Config (com.b3dgs.lionengine.Config)2 Screen (com.b3dgs.lionengine.graphic.Screen)2 Semaphore (java.util.concurrent.Semaphore)2 AtomicReference (java.util.concurrent.atomic.AtomicReference)2 Animation (com.b3dgs.lionengine.Animation)1 Xml (com.b3dgs.lionengine.Xml)1 Collision (com.b3dgs.lionengine.game.feature.collidable.Collision)1 Collection (java.util.Collection)1 HashMap (java.util.HashMap)1 Test (org.junit.Test)1 Test (org.junit.jupiter.api.Test)1