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

Class in buildpath-jar still not found
How do I convert a decimal fraction to binary in Java?
How to override a java method from groovy
No response in Eclipse: File ->Import->Existing Projects into Workspace
Reverse iteration through ArrayList gives IndexOutOfBoundsException
Java Leaky Abstraction Checker
Calling this from inside a nested Java ActionListener
How convert a Collection to List in JAVA?
Is it possible to set an environment variable at runtime from Java?
How can I avoid code duplication with many small classes?
Auto-Starting Selenium RC on Windows XP
J2SE Proxy Authentication
Is it possible to persist data in GAE/java without using annotations?
How do I get multiple hprof dumps in a Java WebStart (JNLP) application?
Why is a ClassCastException only thrown when the return value is accessed?
Embedding a JPanel in a Frame

Categories

HOME
log4j
winforms
deployment
smarty
fme
tesseract
webstorm
binary-tree
gps
indesign
django-imagekit
mouse
autotools
cross-validation
amazon-cloudformation
elasticsearch-hadoop
kibana-4
spring-xd
export-to-csv
alignment
hex-editors
dosgi
ghc
foselasticabundle
graphlab
transformation
alpine
google-pagespeed
plunker
kryo
excel-2007
format-specifiers
lcd
blazemeter
typo3-6.2.x
exuberant-ctags
jspresso
grails-3.1
stringtemplate
main
adobe-premiere
web-mining
hockeyapp
webix-treetable
unoconv
estimote
midl
turbogears
scorm
strptime
jquery-validate
paxos
ionicons
fancybox-2
magma
font-size
media-player
ifs
gcsfuse
sqldf
messenger
gridpane
mathematica-frontend
websitepanel
make-install
captivenetwork
cloudbees
unity-networking
mutation-observers
wordml
content-length
jqgrid-formatter
kcachegrind
varargs
riak-cs
sysinternals
ami
iiviewdeckcontroller
umbraco6
oxwall
nsbutton
titanium-modules
tld
funcunit
mcts
page-layout
inbox
listings
sabredav
funscript
runas
dsn
automount
appconkit
online-compilation
dotnethighcharts
asyncfileupload
javax.script
file-comparison
cxxtest
coda-slider
mirah
ext3
thread-local-storage

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App