how do I test app exit with jemmy
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
You could potentially override security manager and check that System.exit() is going to happen. Java: How to test methods that call System.exit()?
You could try to do it with an Action from the File menu and Exit. Action action = new Action("File|Exit", null); action.perform();
REST API docs generation without SpringMVC or JAX-RS
Java: RGB, HSL, and subtractive color mixing
Get all the headers for HttpPost with entity
Java swing JTextField dissapears after adding a button to BorderLayout.SOUTH [duplicate]
Event on the button with Radio Button
java.sql.SQLSyntaxErrorException: Table/View 'CUSTOMER' does not exist
How to close Output/Input and FileOutput/Input streams properly?
Hibernate MultiMap cannot be found while code generation
Error incompatible types: possible lossy conversion from double to long?
how do I implement the percolate-down function in Heap data structure using nodes? [closed]
Displaying Java 2D graphics content in a JPanel
Saving image in SQLite database
Java Detecting a cyclic directed Graph
Is it possible to clone a class in Java?
restTemplate delete with body
How to show dialog when lwjgl game crashes (java)