When trying to throw an IOException from a mock, I get the following message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: HIL client execution exception:
The implementation works fine in hardware using the function:
The mock prototype includes the
Is there some trick to throwing IOExceptions from mocks?
On mockup side, you have to throw one of the dedicated exceptions:
ej.sni.NativeException which is
ej.sni.NativeIOException which is
These classes are part of the new HIL Engine API provided by MicroEJ SDK 19.02 (
If you are using an older version (until MicroEJ SDK 4.1.5), you can simply replace the
HILEngine.jar file of your mockup project by this one: HILEngine.jar (11.0 KB)
Here is the expected filesystem structure:
That is exactly what I was looking for. Thank you.