[vlc-devel] commit: more VLM tests (Filippo Carone )
git version control
git at videolan.org
Wed Apr 9 21:08:23 CEST 2008
vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Wed Apr 9 21:09:05 2008 +0200| [ee8a709f6b5b8e66c2de73030f2c422546070f0a]
more VLM tests
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee8a709f6b5b8e66c2de73030f2c422546070f0a
---
.../src/test/java/org/videolan/jvlc/VLMTest.java | 79 +++++++++++++++++++-
1 files changed, 76 insertions(+), 3 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 5a8d8a1..c3938ae 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
@@ -38,6 +38,8 @@ public class VLMTest
private String mrl = getClass().getResource("/raffa_voice.ogg").getFile();
+ private String mediaName = "test";
+
@Before
public void setup()
{
@@ -62,18 +64,89 @@ public class VLMTest
public void testAddBroadcast()
{
VLM vlm = jvlc.getVLM();
- vlm.addBroadcast("test", "file://" + mrl, "", null, true, false);
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, true, false);
}
@Test
public void testShowMedia()
{
VLM vlm = jvlc.getVLM();
- vlm.addBroadcast("test", "file://" + mrl, "", null, true, false);
- vlm.showMedia("test");
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, true, false);
+ vlm.showMedia(mediaName);
+ }
+
+ @Test
+ public void testDisableMedia()
+ {
+ VLM vlm = jvlc.getVLM();
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, true, false);
+ vlm.disableMedia(mediaName);
+ }
+
+ @Test
+ public void testPlayMedia()
+ {
+ VLM vlm = jvlc.getVLM();
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, true, false);
+ vlm.playMedia(mediaName);
+ }
+
+ @Test
+ public void testPauseMedia()
+ {
+ VLM vlm = jvlc.getVLM();
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, true, false);
+ vlm.playMedia(mediaName);
+ vlm.pauseMedia(mediaName);
+ }
+
+ @Test
+ public void testStopMedia()
+ {
+ VLM vlm = jvlc.getVLM();
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, true, false);
+ vlm.playMedia(mediaName);
+ vlm.stopMedia(mediaName);
+ }
+
+ @Test
+ public void testSeekMedia()
+ {
+ VLM vlm = jvlc.getVLM();
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, true, false);
+ vlm.playMedia(mediaName);
+ vlm.seekMedia(mediaName, 0.3f);
}
+ @Test
+ public void testAddMediaInput()
+ {
+ VLM vlm = jvlc.getVLM();
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, true, false);
+ vlm.addMediaInput(mediaName, "file://" + mrl);
+ }
+ @Test
+ public void testEnableMedia()
+ {
+ VLM vlm = jvlc.getVLM();
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, false, false);
+ vlm.enableMedia(mediaName);
+ }
+ @Test
+ public void testDeleteMedia()
+ {
+ VLM vlm = jvlc.getVLM();
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, false, false);
+ vlm.deleteMedia(mediaName);
+ }
+ @Test
+ public void testMediaLoop()
+ {
+ VLM vlm = jvlc.getVLM();
+ vlm.addBroadcast(mediaName, "file://" + mrl, "", null, false, false);
+ vlm.setMediaLoop(mediaName, true);
+ }
}
More information about the vlc-devel
mailing list