src/test/java/com/webcheckers/model/BoardViewTest.java
/**
     * Test to ensure light spaces are empty.
     */
Test to ensure light spaces are empty.
Test to ensure light spaces are empty .
@Test
    public void light_spaces_empty() {
        Iterator<Row> rowIterator= CuT.iterator();
        while (rowIterator.hasNext()) {
            Row row = rowIterator.next();
            Iterator<Space> spaceIterator = row.iterator();
            while (spaceIterator.hasNext()) {
                Space space = spaceIterator.next();
                Piece piece = space.getPiece();
                Space.Color color = space.getColor();
                if (color == Space.Color.LIGHT) {
                    assertNull(piece);
                }
            }
        }
    }
@ Test public void light_spaces_empty ( ) { Iterator < Row > rowIterator = CuT . iterator ( ) ; while ( rowIterator . hasNext ( ) ) { Row row = rowIterator . next ( ) ; Iterator < Space > spaceIterator = row . iterator ( ) ; while ( spaceIterator . hasNext ( ) ) { Space space = spaceIterator . next ( ) ; Piece piece = space . getPiece ( ) ; Space . Color color = space . getColor ( ) ; if ( color == Space . Color . LIGHT ) { assertNull ( piece ) ; } } } }
Test to ensure light spaces are empty.
Test to ensure light spaces are empty .