Fix Cache (URL to File could fail if no parent)
[nikiroo-utils.git] / src / be / nikiroo / utils / test / SerialServerTest.java
index 885ee8c0150bf01189113077c4d389f9f2d30834..67ba1610ef7725c4d8939174bfe24f5daa5aa584 100644 (file)
@@ -30,6 +30,10 @@ class SerialServerTest extends TestLauncher {
                                                        throws Exception {
                                                return null;
                                        }
+
+                                       @Override
+                                       protected void onError(Exception e) {
+                                       }
                                };
 
                                int port = server.getPort();
@@ -292,6 +296,10 @@ class SerialServerTest extends TestLauncher {
                                                        throws Exception {
                                                return null;
                                        }
+
+                                       @Override
+                                       protected void onError(Exception e) {
+                                       }
                                };
 
                                int port = server.getPort();
@@ -301,7 +309,11 @@ class SerialServerTest extends TestLauncher {
 
                                ServerBridge br = null;
                                if (bridge) {
-                                       br = new ServerBridge(0, ssl, "", port, ssl);
+                                       br = new ServerBridge(0, ssl, "", port, ssl) {
+                                               @Override
+                                               protected void onError(Exception e) {
+                                               }
+                                       };
                                        port = br.getPort();
                                        br.start();
                                }
@@ -314,6 +326,10 @@ class SerialServerTest extends TestLauncher {
                                                                        throws Exception {
                                                                rec[0] = true;
                                                        }
+
+                                                       @Override
+                                                       protected void onError(Exception e) {
+                                                       }
                                                }.connect();
                                        } finally {
                                                server.stop();