openthread / ot-commissioner

OpenThread Commissioner, a Thread commissioner for joining new Thread devices and managing Thread networks.
https://openthread.io/
BSD 3-Clause "New" or "Revised" License
52 stars 35 forks source link

[android] add basic tests for auto generated java lib #290

Closed wgtdkp closed 3 months ago

wgtdkp commented 3 months ago

When the SWIG interface file (commissioner.i) is updated, the generated java library API may be broken. There are currently no tests to guard this. This commit adds a basic androidTest for this purpose. Note that an Android rather than junit test is added because the test case depends on an JNI library (and it's easier to work with JNI in Android tests).