hi, I'm quite new with jfcunit so please be patient :-)
I want to test an applet but I found some problems. First of all I would like to execute more than one test without killing the applet (and using always the same one). Where do I build my applet? It was clear for me that the called for each test included setup, testxxx and teardown so I tried to develop a testxxx file with the costructor but apparently also the costructor is called each time.
The second question is related with the result of the action. Basically after pressing a button I have to wait until the applet change the view. I read in the documentation to use the WindowMonitor, but probabily I do something wrong. So can someone give me a piece of code in order to show this behaviour(where to put the WindowMonitor and how to wait until the window is loaded)
Thanks a lot
Marco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi, I'm quite new with jfcunit so please be patient :-)
I want to test an applet but I found some problems. First of all I would like to execute more than one test without killing the applet (and using always the same one). Where do I build my applet? It was clear for me that the called for each test included setup, testxxx and teardown so I tried to develop a testxxx file with the costructor but apparently also the costructor is called each time.
The second question is related with the result of the action. Basically after pressing a button I have to wait until the applet change the view. I read in the documentation to use the WindowMonitor, but probabily I do something wrong. So can someone give me a piece of code in order to show this behaviour(where to put the WindowMonitor and how to wait until the window is loaded)
Thanks a lot
Marco