Guest User

Untitled

a guest
Jun 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. package com.google.code.goproject.test;
  2.  
  3. import static org.junit.Assert.*;
  4.  
  5. import org.junit.Before;
  6. import org.junit.Test;
  7.  
  8. import com.google.code.goproject.model.GoBoard;
  9.  
  10. public class GoBoardTest {
  11.     GoBoard k;
  12.  
  13.     @Before
  14.     public void setUp() throws Exception {
  15.          k= new GoBoard(9, 600, 600);
  16.     }
  17.  
  18.     @Test
  19.     public void testGoBoard() {
  20.             boolean expected = true;
  21.             boolean actual = k.dots[0][1].getX() == (600 - k.dots[0][0].getX());
  22.             assertEquals(expected, actual);
  23.     }
  24.  
  25. }
Add Comment
Please, Sign In to add comment