package tests;

import static org.junit.Assert.*;

import org.junit.Test;

public class ObstacleTest {

	@Test
	public void test() {
		fail("Not yet implemented");
	}

}

@@ -55,116 +55,743 @@
 ort 
-org.junit.Test;%0A%0Apublic class ObstacleTest %7B%0A%0A%09@Test%0A%09public void test() %7B%0A%09%09fail(%22Not yet implemented
+java.awt.Color;%0A%0Aimport modele.Obstacle;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class ObstacleTest %7B%0A%09Obstacle O;%0A%0A%09@Before%0A%09public void setUp() %7B%0A%09%09O = new Obstacle(50, 55, 10);%0A%09%7D%0A%0A%09@Test%0A%09public void testGetSize() %7B%0A%09%09assertEquals(10, O.getSize());%0A%09%7D%0A%09%0A%09@Test%0A%09public void testGetY() %7B%0A%09%09assertEquals(55, O.getY(),0);%0A%09%7D%0A%09%0A%09@Test%0A%09public void testGetC() %7B%0A%09%09if(!O.getC().equals(Color.RED))%7B%0A%09%09%09fail(%22Wrong color%22);%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void testGetX() %7B%0A%09%09assertEquals(50, O.getX(),0);%0A%09%7D%0A%09%0A%09@Test%0A%09public void testTouched() %7B%0A%09%09O.setTouched(false);%0A%09%09assertFalse(O.isTouched());%0A%09%7D%0A%09%0A%09%0A%09@Test%0A%09public void testMove() %7B%0A%09%09O.move(20, 20);%0A%09%09if(O.getX() != 20 %7C%7C O.getY() != 20)%7B%0A%09%09%09fail(%22Move don't work
 %22);%0A
+%09
 %09%7D%0A
+%09%7D
 %0A%7D%0A

test obstacles