Commit ab81de3e authored by Filippo Carone's avatar Filippo Carone

jvlc: various unit tests fixes

parent 44d437fe
...@@ -47,7 +47,7 @@ public abstract class AbstractJVLCTest ...@@ -47,7 +47,7 @@ public abstract class AbstractJVLCTest
protected String mrl; protected String mrl;
private String address = "http://streams.videolan.org/streams-videolan/reference/mp4/bl.mp4"; private String address = "http://streams.videolan.org/streams-videolan/avi/Hero-Div3.avi";
/** /**
* Logger. * Logger.
......
...@@ -54,7 +54,7 @@ public abstract class AbstractVLCInternalTest ...@@ -54,7 +54,7 @@ public abstract class AbstractVLCInternalTest
protected libvlc_exception_t exception; 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. * Logger.
...@@ -123,6 +123,10 @@ public abstract class AbstractVLCInternalTest ...@@ -123,6 +123,10 @@ public abstract class AbstractVLCInternalTest
out.write(buffer, 0, numRead); out.write(buffer, 0, numRead);
numWritten += numRead; numWritten += numRead;
} }
if (numWritten == 0)
{
throw new RuntimeException("Cannot download sample, please check the url or your internet connection.");
}
log.info("Sample downloaded."); log.info("Sample downloaded.");
mrl = testResoucesPath + ".avi"; mrl = testResoucesPath + ".avi";
} }
......
...@@ -98,9 +98,6 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest ...@@ -98,9 +98,6 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
libvlc.libvlc_media_list_player_release(mediaListPlayer); libvlc.libvlc_media_list_player_release(mediaListPlayer);
} }
/**
* this fails: see https://trac.videolan.org/vlc/ticket/1527
*/
@Test @Test
public void mediaListPlayerPlay() public void mediaListPlayerPlay()
{ {
...@@ -115,7 +112,6 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest ...@@ -115,7 +112,6 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
Assert.assertEquals("Exception message: " + exception.message + ".\n", 0, exception.raised); Assert.assertEquals("Exception message: " + exception.message + ".\n", 0, exception.raised);
libvlc.libvlc_media_release(mediaDescriptor); libvlc.libvlc_media_release(mediaDescriptor);
libvlc.libvlc_media_list_release(mediaList); libvlc.libvlc_media_list_release(mediaList);
libvlc.libvlc_media_list_player_release(mediaListPlayer);
} }
@Test @Test
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment