jvlc: add_intf unit test added
authorFilippo Carone <littlejohn@videolan.org>
Sun, 14 Dec 2008 17:03:04 +0000 (18:03 +0100)
committerFilippo Carone <littlejohn@videolan.org>
Sun, 14 Dec 2008 17:43:17 +0000 (18:43 +0100)
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);
+    }
+    
 }