When is the right time to call robot.cleanUp ()

I use JUnit and FEST to test the Swing integration of our application, which I start and stop several times in the test case. If @afterincludes a call robot.cleanUp()?

+3
source share
1 answer

The general rule is this: each FrameFlex provisioning site must have an associated cleanup site.

Optionally, if your method @Beforeinitializes FrameField (as in:, w = new FrameFixture<MyWindow>()where w is the field of the test class), you must define a method @Afterthat will free resources through w.cleanUp().

. : http://docs.codehaus.org/display/FEST/Getting+Started.

+1

Source: https://habr.com/ru/post/1779231/


All Articles