]> git.sesse.net Git - vlc/blobdiff - bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcCoreTest.java
jvlc: update libvlc_exception_t structure.
[vlc] / bindings / java / core / src / test / java / org / videolan / jvlc / internal / LibVlcCoreTest.java
index 3d38696c2e9872a2b217c0d1e02f76ec58903a0a..8796647bc820639e1288a904e0d10230e86473b8 100644 (file)
@@ -40,9 +40,9 @@ public class LibVlcCoreTest
     public void testNew() throws Exception
     {
         libvlc_exception_t exception = new libvlc_exception_t();
-        LibVlcInstance libvlcInstance = instance.libvlc_new(0, new String[] {}, exception);
+        LibVlcInstance libvlcInstance = instance.libvlc_new(0, new String[] {"-I","dummy","--aout=dummy","--vout=dummy"}, exception);
         Assert.assertNotNull(libvlcInstance);
-        Assert.assertEquals(0, exception.raised);
+        Assert.assertEquals(0, exception.b_raised);
     }
     
     @Test
@@ -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.b_raised);
+        instance.libvlc_release(libvlcInstance);
+    }
+    
 }