@Test public void testClear() { int N = 4; int L = 8; MutableBoard board = new MutableBoard(N); board.set(0, 2, RED); board.set(1, 3, BLUE); board.set(2, 3, RED); board.set(3, 4, RED); board.set(4, 1, BLUE); int length = N * N; assertEquals(4, board.size()); board.clear(L); assertEquals(8, board.size()); for (int index = 0; index < length; index++) { Square current = board.get(index); assertEquals(WHITE, current.getSide()); assertEquals(1, current.getSpots()); } }
void clear(int N) { unsupported("clear"); }
Board extends Observable { void clear(int N) { unsupported("clear"); } }
Board extends Observable { void clear(int N) { unsupported("clear"); }  }
Board extends Observable { void clear(int N) { unsupported("clear"); }  Square[] getData(); @Override String toString(); boolean winningCond(); String toDisplayString(); int neighborePos(int n, Direction pos); }
Board extends Observable { void clear(int N) { unsupported("clear"); }  Square[] getData(); @Override String toString(); boolean winningCond(); String toDisplayString(); int neighborePos(int n, Direction pos);  }