]> git.sesse.net Git - vlc/commitdiff
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 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);
+    }
+    
 }