2021222324252627282930
@Before public void beforeTest() throws TimeoutException { // Start a server try { server = new ServerDocuments(4545, "abc"); } catch (IOException e) { Logger.getLogger(CampaignClient.class).error( "fail to start server", e); }
1718192021222324252627
@Before public void beforeTest() { // Start a server try { server = new ServerDocuments(4545, "abc"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }
1920212223242526272829
Logger.getLogger(MainServer.class).info( "Start server at " + port + " | name: " + name); try { new ServerDocuments(port, name); } catch (Exception e) { Logger.getLogger(MainServer.class).error("Erreur dans le serveur", e); } }