[vlc-devel] commit: initial VLM tests (Filippo Carone )

git version control git at videolan.org
Wed Apr 9 00:32:02 CEST 2008


vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Wed Apr  9 00:32:29 2008 +0200| [8f257fe0573ffe4d75e2092973588901c892d72d]

initial VLM tests

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f257fe0573ffe4d75e2092973588901c892d72d
---

 .../src/test/java/org/videolan/jvlc/VLMTest.java   |   24 ++++++++++++++++++-
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/bindings/java/core/src/test/java/org/videolan/jvlc/VLMTest.java b/bindings/java/core/src/test/java/org/videolan/jvlc/VLMTest.java
index c9ccff3..5a8d8a1 100644
--- a/bindings/java/core/src/test/java/org/videolan/jvlc/VLMTest.java
+++ b/bindings/java/core/src/test/java/org/videolan/jvlc/VLMTest.java
@@ -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");
     }
     
+    
+    
+    
 }




More information about the vlc-devel mailing list