X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bindings%2Fjava%2Fcore%2Fsrc%2Ftest%2Fjava%2Forg%2Fvideolan%2Fjvlc%2Finternal%2FLibVlcCoreTest.java;h=8796647bc820639e1288a904e0d10230e86473b8;hb=f89d6ff9923d6ee8c3c5fc8eee8af1574c652902;hp=3d38696c2e9872a2b217c0d1e02f76ec58903a0a;hpb=9c24ad3ef121fbda9d6f50fdcbbe1a2193c838a5;p=vlc diff --git a/bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcCoreTest.java b/bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcCoreTest.java index 3d38696c2e..8796647bc8 100644 --- a/bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcCoreTest.java +++ b/bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcCoreTest.java @@ -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); + } + }