Commit 8f257fe0 authored by Filippo Carone's avatar Filippo Carone

initial VLM tests

parent dd2c908f
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
package org.videolan.jvlc; package org.videolan.jvlc;
import junit.framework.Assert;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
...@@ -50,10 +52,28 @@ public class VLMTest ...@@ -50,10 +52,28 @@ public class VLMTest
} }
@Test @Test
public void testPlayMedia() public void testVLMInit()
{
VLM vlm = jvlc.getVLM();
Assert.assertNotNull(vlm);
}
@Test
public void testAddBroadcast()
{
VLM vlm = jvlc.getVLM();
vlm.addBroadcast("test", "file://" + mrl, "", null, true, false);
}
@Test
public void testShowMedia()
{ {
VLM vlm = jvlc.getVLM(); VLM vlm = jvlc.getVLM();
vlm.playMedia(mrl); vlm.addBroadcast("test", "file://" + mrl, "", null, true, false);
vlm.showMedia("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