From: Filippo Carone Date: Tue, 8 Apr 2008 22:32:29 +0000 (+0200) Subject: initial VLM tests X-Git-Tag: 0.9.0-test0~1500 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8f257fe0573ffe4d75e2092973588901c892d72d;p=vlc initial VLM tests --- 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 c9ccff31ec..5a8d8a19fa 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"); } + + + }