]> git.sesse.net Git - vlc/blobdiff - bindings/java/core/src/test/java/org/videolan/jvlc/internal/AbstractVLCInternalTest.java
jvlc: various unit tests fixes
[vlc] / bindings / java / core / src / test / java / org / videolan / jvlc / internal / AbstractVLCInternalTest.java
index efdcbcb62138b91562390abb1127963336e438f6..defc8da0c9608c37e28d35825e17a01b3f4d8938 100644 (file)
@@ -54,7 +54,7 @@ public abstract class AbstractVLCInternalTest
 
     protected libvlc_exception_t exception;
 
-    private String address = "http://streams.videolan.org/streams-videolan/reference/avi/Hero-Div3.avi";
+    private String address = "http://streams.videolan.org/streams-videolan/avi/Hero-Div3.avi";
 
     /**
      * Logger.
@@ -123,6 +123,10 @@ public abstract class AbstractVLCInternalTest
                 out.write(buffer, 0, numRead);
                 numWritten += numRead;
             }
+            if (numWritten == 0)
+            {
+                throw new RuntimeException("Cannot download sample, please check the url or your internet connection.");
+            }
             log.info("Sample downloaded.");
             mrl = testResoucesPath + ".avi";
         }