java


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();

Related Links

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)

Categories

HOME
cakephp
pandas
arduino-uno
pdf
drivers
json.net
hp-exstream
octobercms
alfresco
retrofit
serverspec
enterprise-library-5
opengl-es-2.0
constraint-programming
ios-charts
synchronization
medical
elasticsearch-hadoop
python-unittest
google-translate
gorm
modelica
export-to-csv
windows-azure-storage
dtrace
hex-editors
fortumo
circuit
decimal
saxon
aurigma
flux
intentfilter
cultureinfo
p-value
angular2-aot
selectedindexchanged
windows-error-reporting
libuv
gitignore
quote
srcset
librato
nouislider
titanium-mobile
typed.js
rotational-matrices
environment-modules
core-plot
heightmap
cubic-spline
auto-update
avconv
osx-mavericks
smartcontracts
parentheses
jlink
typescript1.8
fancybox-2
brightcove
colorama
r-forge
memory-alignment
zendesk-app
query-performance
gnome-shell-extensions
pintos
angular-strap
gridpane
log4c
dstu2-fhir
intrusion-detection
essence
fadeout
bluemix-app-scan
xpath-1.0
srand
spidermonkey
jqgrid-formatter
streambase
inmobi
pick
c3
cdt
project-planning
navigationservice
elliptic-curve
rebol3
expected-exception
meteor-velocity
dbconnection
dataservice
batterylevel
mylyn
comaddin
ocunit
referrer
itmstransporter
spring-portlet-mvc
cufon
netdna-api
whoosh
nsobject
django-tagging
appender
celltable
actionview
android-sdk-2.1
lpeg
w3wp.exe
castle-monorail
kdbg
eqatec
noscript
nerddinner
3gp
ntvdm.exe

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App