You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rocksdb
Hi,
Well, I've been trying to expose a certain c++ method to the Java API Using JNI, and I'm lost when it comes to unit testing the jni code to make sure that the arguments are passed correctly from JNI method to the native method. I've looked in the source code well but didn't find anything that shows how the unit testing is done in such things.
I'll be very happy if you clarify things for me.
Best regards,
Fahima Mokhtari
Adam Retter
unread,
Aug 2, 2021, 7:00:58 AM8/2/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fahima MOKHTARI, rocksdb
Hi Fahima,
The Unit tests tend to be end-to-end tests for the Java/JNI code. Take
a look in java/src/test/java for examples.
If you have specific C++ functions that standalone that you want to
test, you can use the GoogleTest framework - take a look at some of
the files named *_test.cc.