src/test/java/GameGridTest.java
/**
     * Basic test of a grid input against the expected & actual result after incrementing the generation once.
     *  Note: the input should include the header indicating row & column counts
     *    e.g.
          3 3
          ...
          .*.
          ...
     *
     * Note: the expectedResult should only be the grid body, not including header
     *    e.g.
          ...
          ...
          ...
     *
     * @param input String representing the full game grid to be tested, including header
     * @param expectedResult String representing the game grid as it should look after a generation, grid only
     */
Basic test of a grid input against the expected & actual result after incrementing the generation once.
Note: the input should include the header indicating row & column counts
e.g.
3 3

.*.

the expectedResult should only be the grid body, not including header
e.g.

@param input String representing the full game grid to be tested, including header
@param expectedResult String representing the game grid as it should look after a generation, grid only
Basic test of a grid input against the expected & actual result after incrementing the generation once . Note : the input should include the header indicating row & column counts e . g . 3 3 . * . the expectedResult should only be the grid body not including header e . g . @param input String representing the full game grid to be tested including header @param expectedResult String representing the game grid as it should look after a generation grid only
private void testGameGrid(String input, String expectedResult) {
        GameGrid gameGrid = new GameGrid(input);
        gameGrid.incrementGeneration();
        Assert.assertEquals(expectedResult, gameGrid.asString());
    }
private void testGameGrid ( String input , String expectedResult ) { GameGrid gameGrid = new GameGrid ( input ) ; gameGrid . incrementGeneration ( ) ; Assert . assertEquals ( expectedResult , gameGrid . asString ( ) ) ; }
Basic test of a grid input against the expected & actual result after incrementing the generation once.
Basic test of a grid input against the expected & actual result after incrementing the generation once .