@Test
	public void testCheckVictory() {
		GameController gc = new GameController(paddle1,paddle2,ball,view,padq1,ballq1);
		int radius = Ball.getSize();
		//ball is not near paddle zone
		boolean b = gc.checkDefeat();
		if(b)
			fail("Failure Trace: ");
		
		//ball y=300
		ball.setPosition(250, 300, 0);
		b= gc.checkVictory();
		if(b)
			fail("Failure Trace: ");
		
		//ball y<300 x< 155+radius
		ball.setPosition(154+radius,90,0);
		b = gc.checkVictory();
		if(b)
			fail("Failure Trace: ");
		
		//ball y<300, x>445-radius
		ball.setPosition(446-radius,90,0);
		b = gc.checkVictory();
		if(b)
			fail("Failure Trace: ");
		
		//ball y<300 x= 155+radius
		ball.setPosition(155+radius,90,0);
		b = gc.checkVictory();
		if(b)
			fail("Failure Trace: ");

		//ball y<300, x=445-radius
		ball.setPosition(445-radius,90,0);
		b = gc.checkVictory();
		if(b)
			fail("Failure Trace: ");
		
		//ball y>300 x> 155+radius x < 445-radius
		//pad position > ball position + paddlesize + radius + 10
		//should be true
		ball.setPosition(325,90,0);
		paddle2.setPosition(150,90);
		b = gc.checkVictory();
		if(!b)
			fail("Failure Trace: ");
		
		//ball y>300 x> 155+radius x < 445-radius
		//pad position < ball position + radius + 10
		//should be true
		ball.setPosition(175,90,0);
		paddle2.setPosition(350,90);
		b = gc.checkVictory();
		if(!b)
			fail("Failure Trace: ");
		
		//ball y>300 x> 155+radius x < 445-radius
		// ball position + radius + 10 < pad position <ball position + paddlesize + radius + 10
		ball.setPosition(250,90,0);
		paddle2.setPosition(250,90);
		b = gc.checkVictory();
		if(b)
			fail("Failure Trace: ");
		
	}