Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package trap;
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.AfterClass;
- import org.junit.Before;
- import org.junit.BeforeClass;
- import org.junit.Test;
- public class LocationTest {
- @BeforeClass
- public static void setUpBeforeClass() throws Exception {
- }
- @AfterClass
- public static void tearDownAfterClass() throws Exception {
- }
- @Before
- public void setUp() throws Exception {
- }
- @After
- public void tearDown() throws Exception {
- }
- @Test
- public void testOne() {
- Board b = new Board(null);
- boolean result = b.isValidLocation(AppConsts.COLUMNS+11, AppConsts.ROWS+1);
- assertTrue(result);
- }
- @Test
- public void testTwo() {
- Board b = new Board(null);
- boolean result = b.isValidLocation(AppConsts.COLUMNS-1, AppConsts.ROWS-1);
- assertTrue(result);
- }
- @Test
- public void testThree() {
- Board b = new Board(null);
- boolean result = b.isValidLocation(0, 0);
- assertTrue(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement