@Before public void setUp() { try { bn = new BatailleNavale(); bn.setDifficulty(Difficulty.POSEIDON); bn.setPseudoHumun("testingPoseidon"); bn.setLongeurGrille(5); bn.setLargeurGrille(5); bn.constructPlayers(); bn.newGame(); } catch (DaoFactoryException ex) { Logger.getLogger(TestPoseidon.class.getName()).log(Level.SEVERE, null, ex); } catch (Exception ex) { Logger.getLogger(TestPoseidon.class.getName()).log(Level.SEVERE, null, ex); } }