use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.
the class SpriteFontTest method beforeTests.
/**
* Prepare tests.
*/
@BeforeAll
public static void beforeTests() {
Medias.setFactoryMedia(new FactoryMediaDefault());
Medias.setLoadFromJar(SpriteFontTest.class);
Graphics.setFactoryGraphic(new FactoryGraphicMock());
media = Medias.create("image.png");
font = Medias.create("fontdata.xml");
}
use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.
the class SpriteTest method beforeTests.
/**
* Prepare tests.
*/
@BeforeAll
public static void beforeTests() {
Graphics.setFactoryGraphic(new FactoryGraphicMock());
Medias.setLoadFromJar(SpriteTest.class);
}
use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.
the class ImageTest method beforeTests.
/**
* Prepare tests.
*/
@BeforeAll
public static void beforeTests() {
Graphics.setFactoryGraphic(new FactoryGraphicMock());
Medias.setLoadFromJar(ImageTest.class);
media = Medias.create("image.png");
}
use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.
the class ParallaxTest method beforeTests.
/**
* Prepare tests.
*/
@BeforeAll
public static void beforeTests() {
Graphics.setFactoryGraphic(new FactoryGraphicMock());
Medias.setLoadFromJar(ParallaxTest.class);
}
use of com.b3dgs.lionengine.graphic.FactoryGraphicMock in project lionengine by b3dgs.
the class FactoryTest method beforeAll.
/**
* Start engine.
*/
@BeforeAll
static void beforeAll() {
Engine.start(new EngineMock(FactoryTest.class.getSimpleName(), Version.DEFAULT));
Medias.setResourcesDirectory(System.getProperty("java.io.tmpdir"));
Medias.setLoadFromJar(FactoryTest.class);
Graphics.setFactoryGraphic(new FactoryGraphicMock());
}
Aggregations