Advertisement
Guest User

Untitled

a guest
May 27th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. package trap;
  2.  
  3. import static org.junit.Assert.*;
  4.  
  5. import org.junit.After;
  6. import org.junit.AfterClass;
  7. import org.junit.Before;
  8. import org.junit.BeforeClass;
  9. import org.junit.Test;
  10.  
  11. public class LocationTest {
  12.  
  13. @BeforeClass
  14. public static void setUpBeforeClass() throws Exception {
  15. }
  16.  
  17. @AfterClass
  18. public static void tearDownAfterClass() throws Exception {
  19. }
  20.  
  21. @Before
  22. public void setUp() throws Exception {
  23. }
  24.  
  25. @After
  26. public void tearDown() throws Exception {
  27. }
  28.  
  29. @Test
  30. public void testOne() {
  31. Board b = new Board(null);
  32. boolean result = b.isValidLocation(AppConsts.COLUMNS+11, AppConsts.ROWS+1);
  33. assertTrue(result);
  34. }
  35.  
  36. @Test
  37. public void testTwo() {
  38. Board b = new Board(null);
  39. boolean result = b.isValidLocation(AppConsts.COLUMNS-1, AppConsts.ROWS-1);
  40. assertTrue(result);
  41. }
  42.  
  43. @Test
  44. public void testThree() {
  45. Board b = new Board(null);
  46. boolean result = b.isValidLocation(0, 0);
  47. assertTrue(result);
  48. }
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement