From ab75bc3a7a2de0ba1662c26838fbbc90cfd81395 Mon Sep 17 00:00:00 2001 From: Filippo Carone Date: Tue, 6 Jan 2009 19:41:00 +0100 Subject: [PATCH] jvlc: test to check audio mute on 2 different instances --- .../test/java/org/videolan/jvlc/JVLCTest.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/bindings/java/core/src/test/java/org/videolan/jvlc/JVLCTest.java b/bindings/java/core/src/test/java/org/videolan/jvlc/JVLCTest.java index 2803f291e5..ac6b31e5a8 100644 --- a/bindings/java/core/src/test/java/org/videolan/jvlc/JVLCTest.java +++ b/bindings/java/core/src/test/java/org/videolan/jvlc/JVLCTest.java @@ -72,5 +72,21 @@ public class JVLCTest extends AbstractJVLCTest } - + @Test + public void twoAudioInstancesTest() throws Exception + { + JVLC instance1 = new JVLC(); + JVLC instance2 = new JVLC(); + + instance1.play(mrl); + instance2.play(mrl); + + Thread.sleep(1000); + + instance1.getAudio().setMute(true); + Assert.assertNotNull(instance2.getAudio()); + Assert.assertTrue(instance1.getAudio().getMute()); + Assert.assertTrue(!instance2.getAudio().getMute()); + + } } -- 2.39.2