我使用 Jemmy 进行 Java GUI 测试。是否可以测试关闭应用程序?
目前我模拟单击退出按钮(导致System.exit(0)
)并且测试失败:
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)
谢谢,安德烈