When writing Java software, it’s sometimes needed to call some native code, and mostly this has been achieved by writing a JNI adapter, and relying on the magic of the java runtime to link the methods in the library to the abstract native java methods.
Here we show another way to do this, applicable mostly when using Java in an embedded device, but perhaps in other settings too, where the java code can be ProGuard’ed and all symbols removed from the C objects.
I had to install couchdb with fabric, and this is what I ended up with…
When writing automated tests for Swing, AWT or any other UI component, when a test fails it can be very useful to capture the screen/component that was showing at the end of the test.
Here we use a JUnit Rule, introduced in JUnit 4, to capture the screen at the end of the test.
When writing automated tests for using WebDriver, especially when running those tests on a remote machine, when a test fails it can be very useful to capture the screen/component that was showing at the end of the test.