]> git.sesse.net Git - vlc/blobdiff - bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcCoreTest.java
jvlc: add_intf unit test added
[vlc] / bindings / java / core / src / test / java / org / videolan / jvlc / internal / LibVlcCoreTest.java
index a3f122dfe125c4e4f9ef7cb2df36de784c9315d4..8ac0ee9443f7db8124ad3274d6a41d32be559f8d 100644 (file)
@@ -53,4 +53,14 @@ public class LibVlcCoreTest
         instance.libvlc_release(libvlcInstance);
     }
     
+    @Test
+    public void testAddIntf() throws Exception
+    {
+        libvlc_exception_t exception = new libvlc_exception_t();
+        LibVlcInstance libvlcInstance = instance.libvlc_new(0, new String[] {}, exception);
+        instance.libvlc_add_intf(libvlcInstance, "dummy", exception);
+        Assert.assertEquals(0, exception.raised);
+        instance.libvlc_release(libvlcInstance);
+    }
+    
 }