TextUpdater implements TreeUpdater { @Override public void clear() { data.setLength(0); } TextUpdater(); @Override void clear(); @Override int getGestation(); @Override SearchNode getRoot(); @Override String toString(); @Override void updateForAcceptMove(); @Override void updateTree(Color winner, McRunnable mcRunnable);  }
@Test public void testClear() { McRunnable runnable = player.getMcRunnable(0); runnable.performMcRun(); assertNotEquals("", textUpdater.toString()); player.clear(); assertEquals("", textUpdater.toString()); }