assertj-swing
assertj-swing copied to clipboard
Support for testing on apps started via WebStart
Issue by Michael Hüttermann from Mon, 12 Oct 2009 14:57:02 -0500 Originally opened as http://jira.codehaus.org/browse/FEST-240
It is interesting to test applications which run in different classloader scenarios. One major use case is apps started by WebStart. They behave different than the same apps/test without WebStart. Tests set on top of WebStart would further improve the test quality (more realistic in special cases). This feature can be used in JavaFX scenarios too.
votes (original issue): 0 watches (original issue): 0
Comment by kgeis from Mon, 12 Oct 2009 16:50:18 -0500
I haven't dealt with the classloading issue, but I've tested my WebStart app by creating my own ServiceManagerStub. I wrapped the application with a simple main() that registers the ServiceManagerStub and then calls the app's main() method. I created a BasicService that just logs when a URL is shown. I could also use it like a mock if desired by implementing something like BasicServiceImpl.assertDocumentShown(URL).