@Test public void should_Parse_One_Point_Board() throws Exception { char[][] board = new char[][]{ {'X'} }; Cell rootCell = Parser.boardToRootCell(board); assertThat(rootCell.getLeft(), instanceOf(NotACell.class)); assertThat(rootCell.getRight(), instanceOf(NotACell.class)); assertThat(rootCell.getUp(), instanceOf(NotACell.class)); assertThat(rootCell.getDown(), instanceOf(NotACell.class)); }
public static Cell boardToRootCell(char[][] board) { return createCellAndNeighbors(0, 0, board, createCellsCache(board)); }
Parser { public static Cell boardToRootCell(char[][] board) { return createCellAndNeighbors(0, 0, board, createCellsCache(board)); } }
Parser { public static Cell boardToRootCell(char[][] board) { return createCellAndNeighbors(0, 0, board, createCellsCache(board)); } private  Parser(); }
Parser { public static Cell boardToRootCell(char[][] board) { return createCellAndNeighbors(0, 0, board, createCellsCache(board)); } private  Parser(); static Cell boardToRootCell(char[][] board); }
Parser { public static Cell boardToRootCell(char[][] board) { return createCellAndNeighbors(0, 0, board, createCellsCache(board)); } private  Parser(); static Cell boardToRootCell(char[][] board);  }