]> git.sesse.net Git - vlc/commitdiff
initial VLM tests
authorFilippo Carone <littlejohn@videolan.org>
Tue, 8 Apr 2008 22:32:29 +0000 (00:32 +0200)
committerFilippo Carone <littlejohn@videolan.org>
Tue, 8 Apr 2008 22:32:46 +0000 (00:32 +0200)
bindings/java/core/src/test/java/org/videolan/jvlc/VLMTest.java

index c9ccff31ec229e308b7398d5827477783c1564de..5a8d8a19fa8794c8b872916f06d493ad070ebfb6 100644 (file)
@@ -25,6 +25,8 @@
 
 package org.videolan.jvlc;
 
+import junit.framework.Assert;
+
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -50,10 +52,28 @@ public class VLMTest
     }
     
     @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.playMedia(mrl);
+        vlm.addBroadcast("test", "file://" + mrl, "", null, true, false);
+        vlm.showMedia("test");
     }
     
+    
+    
+    
 }