Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.junit.Assert;
- import org.junit.Before;
- import org.junit.Test;
- public class testeparateste {
- public Sala umaSala;
- public Robo umRobo;
- @Before public void criaSalaERobo(){
- umaSala = new Sala(10, 10);
- umRobo = new Robo(100, umaSala);
- }
- @Test public void testaRobo(){
- Assert.assertTrue(umRobo.descer());
- Assert.assertTrue(umRobo.direita());
- Assert.assertTrue(umRobo.esquerda());
- Assert.assertTrue(umRobo.subir());
- }
- }
Add Comment
Please, Sign In to add comment