jvlc: add_intf unit test added
[vlc.git] / bindings / java / core / src / test / java / org / videolan / jvlc / internal / LibVlcCoreTest.java
index a3f122d..8ac0ee9 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);
+    }
+    
 }