View difference between Paste ID: aG72K3Kc and f2FpUUL5
SHOW: | | - or go back to the newest paste.
1
import org.junit.Assert;
2
import org.junit.Before;
3
import org.junit.Test;
4
5
public class testeparateste {
6
7
	public Sala umaSala;
8
	public Robo umRobo;
9
10
	@Before public void criaSalaERobo(){
11
		umaSala = new Sala(10, 10);
12
		umRobo = new Robo(100, umaSala);
13
	}
14
	
15
	@Test public void testaRobo(){
16
		
17
		Assert.assertTrue(umRobo.descer());
18
		Assert.assertTrue(umRobo.direita());
19
		Assert.assertTrue(umRobo.esquerda());
20
		Assert.assertTrue(umRobo.subir());
21
	}
22
}