mirror of https://github.com/kivy/pyjnius.git
change method arg to signature
This commit is contained in:
parent
cdd653edf5
commit
b8c29f635f
|
@ -51,7 +51,7 @@ class TestConstructor(unittest.TestCase):
|
||||||
|
|
||||||
outputStream = autoclass('java.lang.System').out
|
outputStream = autoclass('java.lang.System').out
|
||||||
ConstructorTest = autoclass('org.jnius.ConstructorTest')
|
ConstructorTest = autoclass('org.jnius.ConstructorTest')
|
||||||
inst = ConstructorTest(outputStream, param_types="(Ljava/io/OutputStream;)V")
|
inst = ConstructorTest(outputStream, signature="(Ljava/io/OutputStream;)V")
|
||||||
self.assertEqual(inst.ret, 42)
|
self.assertEqual(inst.ret, 42)
|
||||||
self.assertTrue(ConstructorTest.getClass().isInstance(inst))
|
self.assertTrue(ConstructorTest.getClass().isInstance(inst))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue