use of com.b3dgs.lionengine.graphic.SpriteTiled in project lionengine by b3dgs.
the class SpriteTiledTest method testFilterBilinear.
/**
* Test filter bilinear.
*/
@Test
public void testFilterBilinear() {
final SpriteTiled sprite = new SpriteTiledImpl(Graphics.createImageBuffer(64, 32), 16, 8);
sprite.filter(new FilterBilinear());
Assert.assertEquals(64, sprite.getWidth());
Assert.assertEquals(32, sprite.getHeight());
}
use of com.b3dgs.lionengine.graphic.SpriteTiled in project lionengine by b3dgs.
the class SpriteTiledTest method testMirrorNull.
/**
* Test mirror <code>null</code>.
*/
@Test(expected = LionEngineException.class)
public void testMirrorNull() {
final SpriteTiled sprite = new SpriteTiledImpl(Graphics.createImageBuffer(64, 32), 16, 8);
sprite.setMirror(null);
}
use of com.b3dgs.lionengine.graphic.SpriteTiled in project lionengine by b3dgs.
the class SpriteTiledTest method testLoadSurface.
/**
* Test load with surface.
*/
@Test(expected = LionEngineException.class)
public void testLoadSurface() {
final SpriteTiled sprite = new SpriteTiledImpl(Graphics.createImageBuffer(64, 32), 16, 8);
sprite.load();
}
use of com.b3dgs.lionengine.graphic.SpriteTiled in project lionengine by b3dgs.
the class SpriteTiledTest method testStretchInvalidHeight.
/**
* Test stretch sprite with invalid height.
*/
@Test(expected = LionEngineException.class)
public void testStretchInvalidHeight() {
final SpriteTiled sprite = new SpriteTiledImpl(Graphics.createImageBuffer(64, 32), 16, 8);
sprite.stretch(100, 0.0);
}
use of com.b3dgs.lionengine.graphic.SpriteTiled in project lionengine by b3dgs.
the class SpriteTiledTest method testSetOriginNull.
/**
* Test origin <code>null</code>.
*/
@Test(expected = LionEngineException.class)
public void testSetOriginNull() {
final SpriteTiled sprite = new SpriteTiledImpl(Graphics.createImageBuffer(64, 32), 16, 8);
sprite.setOrigin(null);
}
Aggregations