|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.extensions.abbot.AWTFixtureHelper
Provides reusable preservation/restoration of AWT UI/System state. Also handles standardized fixture event logging and catching exceptions on the AWT event dispatch thread (EDT).
Nested Class Summary | |
static class |
AWTFixtureHelper.ExceptionCatcher
Provide access to the most recent exception caught on the dispatch thread. |
Constructor Summary | |
AWTFixtureHelper()
Create an instance of AWTFixtureHelper which makes a snapshot of the current VM state. |
Method Summary | |
Throwable |
getEventDispatchError()
Returns the last exception thrown on the event dispatch thread, or null if no such exception has been thrown. |
void |
restore()
Restore the state that was preserved when this object was created. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AWTFixtureHelper()
Method Detail |
public Throwable getEventDispatchError()
null
if no such exception has been thrown.
public void restore()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |