I use Jemmy for Java GUI testing. Is it possible to test closing application?
Currently I simulate a click on the exit button (causing System.exit(0)
) and the test fails:
junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
Thanks, Andrey