From 8f257fe0573ffe4d75e2092973588901c892d72d Mon Sep 17 00:00:00 2001 From: Filippo Carone Date: Wed, 9 Apr 2008 00:32:29 +0200 Subject: [PATCH] initial VLM tests --- .../test/java/org/videolan/jvlc/VLMTest.java | 24 +++++++++++++++++-- 1 file 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 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"); } + + + } -- 2.39.2