Guest User

Untitled

a guest
Jul 17th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment