@@ -0,0 +1,1118 @@
+package ch.booyakasha.engine;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class AliGEntityTest %7B%0A%09%0A%09private AliGEntity alig;%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09Configuration.setCurrent(new Configuration());%0A%09%09Game game = new Game();%0A%09%09alig = new AliGEntity(game, %22/sprites/alig.gif%22, 100, 500);%0A%09%7D%0A%0A%09@Test%0A%09public void testMove() %7B%0A%09%09alig.setHorizontalMovement(50);%0A%09%09alig.move(500);%0A%09%09assertEquals(125, alig.getX());%0A%09%7D%0A%0A%09@Test%0A%09public void testSetHorizontalMovement() %7B%0A%09%09alig.setHorizontalMovement(200);%0A%09%09assertEquals(200, alig.getHorizontalMovement(), 0);%0A%09%7D%0A%0A%09@Test%0A%09public void testSetVerticalMovement() %7B%0A%09%09alig.setVerticalMovement(200);%0A%09%09assertEquals(200, alig.getVerticalMovement(), 0);%0A%09%7D%0A%0A%09@Test%0A%09public void testGetHorizontalMovement() %7B%0A%09%09assertEquals(0, alig.getHorizontalMovement(), 0);%0A%09%7D%0A%0A%09@Test%0A%09public void testGetVerticalMovement() %7B%0A%09%09assertEquals(0, alig.getVerticalMovement(), 0);%0A%09%7D%0A%0A%09@Test%0A%09public void testGetX() %7B%0A%09%09assertEquals(100, alig.getX());%0A%09%7D%0A%0A%09@Test%0A%09public void testGetY() %7B%0A%09%09assertEquals(500, alig.getY());%0A%09%7D%0A%7D%0A

add unit test