import javafx.scene.layout.BorderPane;
import javafx.scene.shape.Circle;
import junit.framework.TestCase;
import nl.joshuaslik.tudelft.SEM.control.gameObjects.Bubble;
import nl.joshuaslik.tudelft.SEM.model.container.Point;
import nl.joshuaslik.tudelft.SEM.model.container.Vector;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class BubbleTest extends TestCase {
	
	private static final BorderPane bp = new BorderPane();
	Bubble bubble;
	Circle circle;
	
	@Before
	public void setUp() throws Exception {
	}
	
	@After
	public void tearDown() throws Exception {
	}
	
	@Test
	public void testBubble() {
		bubble = new Bubble(new Point(200, 200), 50, new Vector(5, 2));
		Circle circle = (Circle) bubble.getNode();
		assertEquals(circle.getCenterX(), 200, 0);
		assertEquals(circle.getCenterY(), 200, 0);
		assertEquals(circle.getRadius(), 50, 0);
	}
	
	@Test
	public void testGetNode() {
		bubble = new Bubble(new Point(200, 200), 50, new Vector(5, 2));
		assertTrue(bubble.getNode() instanceof Circle);
		
	}
	
	@Test
	public void testGetClosestIntersection() {
		
	}
	
	@Test
	public void testUpdate() {
		fail("Not yet implemented");
	}
	
	@Test
	public void testCheckCollision() {
		fail("Not yet implemented");
	}
	
	@Test
	public void testPrepareUpdate() {
		fail("Not yet implemented");
	}
	
	@Test
	public void testGetSpeedVector() {
		bubble = new Bubble(new Point(200, 200), 50, new Vector(5, 2));
		assertEquals(bubble.getSpeedVector(), new Vector(0, 0));
		
	}
	
	@Test
	public void testSplitBubble() {
		fail("Not yet implemented");
	}
	
	@Test
	public void testGetPoint() {
		bubble = new Bubble(new Point(200, 200), 50, new Vector(5, 2));
		assertEquals(bubble.getPoint(), new Point(200, 200));
	}
	
	@Test
	public void testGetRadius() {
		
		bubble = new Bubble(new Point(200, 200), 50, new Vector(5, 2));
		assertEquals(bubble.getRadius(), 50, 0);
	}
}

@@ -1123,32 +1123,34 @@
 estUpdate() %7B%0A%09%09
+//
 fail(%22Not yet im
@@ -1154,32 +1154,32 @@
  implemented%22);%0A
-
 %09%7D%0A%09%0A%09@Test%0A%09pub
@@ -1208,24 +1208,26 @@
 ision() %7B%0A%09%09
+//
 fail(%22Not ye
@@ -1286,26 +1286,28 @@
 eUpdate() %7B%0A
-
 %09%09
+//
 fail(%22Not ye
@@ -1546,16 +1546,18 @@
 e() %7B%0A%09%09
+//
 fail(%22No

Comment unimplemented tests