use of com.b3dgs.lionengine.graphic.Sprite in project lionengine by b3dgs.
the class SpriteTest method testLoadSurface.
/**
* Test load with surface.
*/
@Test(expected = LionEngineException.class)
public void testLoadSurface() {
final Sprite sprite = new SpriteImpl(Graphics.createImageBuffer(64, 32));
sprite.load();
}
use of com.b3dgs.lionengine.graphic.Sprite in project lionengine by b3dgs.
the class SpriteTest method testLoadMediaAlready.
/**
* Test load with media already loaded.
*/
@Test(expected = LionEngineException.class)
public void testLoadMediaAlready() {
final Sprite sprite = new SpriteImpl(media);
sprite.load();
sprite.load();
}
Aggregations