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