mirror of https://github.com/kivy/pyjnius.git
add tests for testing Python string -> [B, using ByteBuffer.wrap(byte[])
This commit is contained in:
parent
5ec6d80ba3
commit
68165ed04b
|
@ -0,0 +1,9 @@
|
|||
import unittest
|
||||
from jnius import autoclass
|
||||
|
||||
class StringArgumentForByteArrayTest(unittest.TestCase):
|
||||
|
||||
def test_string_arg_for_byte_array(self):
|
||||
# the ByteBuffer.wrap() accept only byte[].
|
||||
ByteBuffer = autoclass('java.nio.ByteBuffer')
|
||||
self.assertIsNotNone(ByteBuffer.wrap('hello world'))
|
Loading…
Reference in New Issue